.platform.platform-v2 {
  padding: 0;
  overflow: visible;
  isolation: isolate;
  background: #07131d !important;
}
.platform-v2::before {
  opacity: .28;
  mask-image: none;
  -webkit-mask-image: none;
  background-attachment: fixed;
}
.platform-v2-scroll { height: 680svh; }
.platform-v2-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.platform-v2-shell {
  position: relative;
  z-index: 1;
  height: min(100svh, 900px);
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(34px, 5svh, 58px);
  padding-bottom: clamp(24px, 4svh, 42px);
}
.platform-v2 .chapter-head { position: relative; z-index: 4; flex: 0 0 auto; margin: 0 0 clamp(18px, 3svh, 32px); }
.platform-v2-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 650px;
  display: grid;
  grid-template-columns: minmax(310px, .8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 5vw, 88px);
  align-items: stretch;
  perspective: 1400px;
}
.platform-v2-lead {
  min-width: 0;
  max-width: 540px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.platform-v2-lead-count {
  margin-bottom: 22px;
  color: #8cdaeb;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .17em;
}
.platform-v2 .platform-v2-lead h2 {
  max-width: none;
  margin: 0;
  color: #e8f3f7;
  font-size: clamp(34px, 2.95vw, 51px);
  line-height: 1.09;
  font-weight: 700;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.platform-v2-lead p {
  max-width: 480px;
  margin-top: 22px;
  color: #b9cbd2;
  font-size: clamp(15px, 1.07vw, 17px);
  line-height: 1.5;
}
.platform-v2-lead p:empty { display: none; }
.platform-v2-visual { position: relative; min-width: 0; min-height: 0; overflow: visible; container-type: size; }
.platform-v2-morph {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.platform-v2-morph::before {
  content: "";
  position: absolute;
  width: min(50vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #49d4eb15, transparent 68%);
  filter: blur(12px);
}
.platform-v2-morph .dot-sculpture { position: relative; width: 100%; height: 100%; }
.platform-v2-morph-fallback { display: none; width: 220px; opacity: .5; }
.platform-v2-morph .dot-sculpture:not(.is-ready) { display: none; }
.platform-v2-morph .dot-sculpture:not(.is-ready) + .platform-v2-morph-fallback { display: block; }
.platform-v2.is-morphed .platform-v2-morph .dot-sculpture:not(.is-ready) + .platform-v2-morph-fallback { display: none; }
.platform-v2.is-morphed .platform-v2-visual:has(.dot-sculpture:not(.is-ready)) .platform-v2-card.is-active::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px dotted #79d9e8a0;
  border-radius: 25px;
  pointer-events: none;
}
.platform-v2-cards {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 8 / 5;
  max-height: 100%;
  transform: translateY(-50%);
}
.platform-v2-cards:focus-visible { outline: 2px solid #9eeaff; outline-offset: 5px; }
.platform-v2-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(calc(100cqw - 64px), calc((100cqh - 64px) * 1.6));
  height: auto;
  aspect-ratio: 8 / 5;
  translate: -50% -50%;
  padding: 5px;
  border: 1px solid #6bbacb70;
  border-radius: 18px;
  background: #102631;
  box-shadow: 0 22px 44px #0008;
  transform-origin: left center;
  will-change: transform;
  transition: border-color .45s ease, box-shadow .55s ease;
}
.platform-v2-card.is-active {
  border-color: #acecf3bd;
  box-shadow: 0 0 0 1px #b9f2fa24, 0 28px 62px #0009, 0 0 38px #66d5e42e;
}
.platform-v2-card.is-stacked { border-color: #75cadd8c; box-shadow: 0 20px 42px #000a, 0 0 24px #62cfe524; }
.platform-v2-card.is-active.has-history {
  box-shadow: 0 0 0 1px #b9f2fa24, 0 28px 62px #0009, 0 0 38px #66d5e42e;
}
.platform-v2-media-ui::before,
.platform-v2-media-ui::after {
  content: "";
  position: absolute;
  inset: -42px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .85s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.platform-v2-media-ui::before {
  background: radial-gradient(circle, #88deee9c 1px, transparent 1.8px) 0 0 / 13px 13px;
  mask-image: radial-gradient(ellipse 62% 61% at 50% 50%, transparent 52%, #000 66%, #0008 83%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 62% 61% at 50% 50%, transparent 52%, #000 66%, #0008 83%, transparent 100%);
  transform: perspective(700px) rotateX(9deg) scale(.94);
  animation: platform-surface-flow 15s linear infinite;
}
.platform-v2-media-ui::after {
  inset: -66px;
  background: radial-gradient(ellipse at 48% 46%, #4ac8e91d 15%, #6dcce814 48%, transparent 73%);
  filter: blur(17px);
  transform: scale(.86);
}
.platform-v2.is-image-visible .platform-v2-media-ui::before { opacity: .48; transform: perspective(700px) rotateX(9deg) scale(1); }
.platform-v2.is-image-visible .platform-v2-media-ui::after { opacity: 1; transform: scale(1); }
@keyframes platform-surface-flow { to { background-position: 13px 26px; } }
.platform-v2-open {
  position: absolute;
  inset: 5px;
  display: block;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: none;
  cursor: default;
  color: #eaf9fc;
}
.platform-v2-open:focus-visible { outline: 3px solid #a8edfa; outline-offset: 5px; }
/* Reveal the first image and its frame as one surface after the dot morph. */
@media (min-width: 801px) and (prefers-reduced-motion: no-preference) {
  .platform-v2-card[data-part="0"] { clip-path: circle(calc(var(--platform-portal, 1) * 76%) at 50% 50%); }
}
.platform-v2-screen,
.platform-v2-pending {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #b4dce282;
  border-radius: 13px;
  background: #f6f8f7;
  box-shadow: inset 0 1px #fff8;
}
.platform-v2-screen img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.platform-v2-card[data-part="3"] .platform-v2-screen img { object-fit: contain; object-position: center center; background: #f6f8f7; }
.platform-v2-card[data-part="3"] .platform-v2-screen img:not(.platform-v2-live-plate) { filter: saturate(.78) contrast(.98) brightness(.97); }
.platform-v2-card[data-part="3"] .platform-v2-live-plate {
  clip-path: inset(0 0 73% 0);
  filter: brightness(1.18) contrast(1.27) saturate(.83);
  pointer-events: none;
}
.platform-v2-card[data-part="6"] .platform-v2-screen { background: #0b1b23; }
.platform-v2-card[data-part="6"] .platform-v2-screen img { object-fit: cover; object-position: center center; filter: saturate(.76) brightness(.9); }
.lightbox.is-platform-live img { filter: saturate(.78) contrast(.98) brightness(.97); }
.platform-v2-pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #d7e9ef;
  background: radial-gradient(circle at 50% 38%, #25516b, #0b1e2b 70%);
  text-align: center;
}
.platform-v2-pending-grid {
  position: absolute;
  inset: 0;
  opacity: .4;
  background: radial-gradient(circle, #a7eff7 1px, transparent 1.6px) 0 0 / 19px 19px;
  mask-image: radial-gradient(circle at center, #000, transparent 70%);
}
.platform-v2-pending > span { z-index: 1; color: #98dce8; font-size: 10px; font-weight: 750; letter-spacing: .18em; }
.platform-v2-pending > strong { z-index: 1; font-size: clamp(28px, 3vw, 43px); line-height: 1.1; letter-spacing: -.045em; }
.platform-v2-footer { z-index: 4; flex: 0 0 auto; display: flex; align-items: center; gap: 20px; margin-top: clamp(18px, 3svh, 34px); }
.platform-v2-progress { min-width: 65px; color: #bce5eb; font-size: 12px; font-weight: 760; letter-spacing: .1em; }
.platform-v2-progress-track { flex: 1; height: 1px; background: #8fcbda50; }
.platform-v2-progress-track > span { display: block; width: 100%; height: 2px; background: #82dbec; transform-origin: left; transform: scaleX(.143); transition: transform .35s ease; }
.platform-v2-controls { display: flex; gap: 9px; }
.platform-v2-controls .icon-button { width: 42px; height: 42px; border: 1px solid #8dd8e867; border-radius: 50%; background: #0c2632; }
.platform-v2-controls .icon-button:disabled { opacity: .34; cursor: default; }
.platform-v2-controls .icon-button:not(:disabled):hover { background: #164151; border-color: #a1e9f4; }

.platform-v2:not(.is-ready) { padding-block: 82px; }
.platform-v2:not(.is-ready) .platform-v2-scroll,
.platform-v2:not(.is-ready) .platform-v2-sticky,
.platform-v2:not(.is-ready) .platform-v2-shell,
.platform-v2:not(.is-ready) .platform-v2-stage { height: auto; min-height: 0; max-height: none; position: relative; overflow: visible; display: block; }
.platform-v2:not(.is-ready) .platform-v2-morph { display: none; }
.platform-v2:not(.is-ready) .platform-v2-cards { position: relative; display: grid; gap: 18px; }
.platform-v2:not(.is-ready) .platform-v2-card { position: relative; top: auto; left: 0; width: 100%; height: 380px; translate: none; opacity: 1; }
.platform-v2:not(.is-ready) .platform-v2-card::after { content: attr(data-title); position: absolute; left: 18px; bottom: 18px; padding: 8px 12px; background: #09202bd9; color: #fff; border-radius: 5px; }
.platform-v2:not(.is-ready) .platform-v2-footer { display: none; }

@media (max-height: 760px) and (min-width: 801px) {
  .platform-v2-sticky, .platform-v2-shell { min-height: 0; }
  .platform-v2-shell { justify-content: flex-start; padding-top: 28px; padding-bottom: 20px; }
  .platform-v2-stage { min-height: 0; }
  .platform-v2 .platform-v2-lead h2 { font-size: clamp(34px, 3vw, 48px); }
}
@media (max-width: 800px), (prefers-reduced-motion: reduce) {
  .platform.platform-v2 { overflow: hidden; padding: 82px 0 72px; }
  .platform-v2-scroll, .platform-v2-sticky, .platform-v2-shell { height: auto; min-height: 0; }
  .platform-v2-sticky { position: relative; display: block; overflow: visible; }
  .platform-v2-shell { display: block; padding: 0; }
  .platform-v2 .chapter-head { margin-bottom: 25px; }
  .platform-v2-stage { height: auto; max-height: none; min-height: 0; display: block; }
  .platform-v2-lead { max-width: 700px; height: var(--platform-lead-height, auto); min-height: 155px; display: block; margin-bottom: 28px; overflow-anchor: none; }
  .platform-v2-lead-count { display: block; margin-bottom: 13px; }
  .platform-v2 .platform-v2-lead h2 { font-size: clamp(31px, 7.7vw, 46px); }
  .platform-v2-lead p { margin-top: 12px; font-size: 15px; }
  .platform-v2-visual { height: auto; overflow: visible; container-type: normal; }
  .platform-v2-media-ui::before, .platform-v2-media-ui::after { display: none; }
  .platform-v2-morph { display: none; }
  .platform-v2-cards {
    position: relative;
    display: flex;
    top: auto;
    left: auto;
    width: auto;
    aspect-ratio: auto;
    max-height: none;
    transform: none;
    gap: 15px;
    margin-inline: calc((100vw - 100%) / -2);
    padding: 10px max(20px, calc((100vw - 100%) / 2)) 22px;
    overflow-x: auto;
    overflow-anchor: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .platform-v2-cards::-webkit-scrollbar { display: none; }
  .platform-v2-card {
    position: relative;
    flex: 0 0 min(84vw, 620px);
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    aspect-ratio: 8 / 5;
    translate: none;
    padding: 5px;
    transform: none !important;
    opacity: 1 !important;
    scroll-snap-align: center;
    will-change: auto;
  }
  .platform-v2-card.is-active.has-history { box-shadow: 0 22px 44px #0008; }
  .platform-v2-card[data-part="0"] .platform-v2-screen { clip-path: none; transform: none; }
  .platform-v2-card::before {
    content: "";
    display: block;
    position: absolute;
    inset: -8px;
    border: 2px dotted #75d4e38c;
    border-radius: 23px;
    pointer-events: none;
  }
  .platform-v2-footer { margin-top: 5px; }
}
@media (max-width: 480px) {
  .platform.platform-v2 { padding-block: 72px 60px; }
  .platform-v2-lead { min-height: 180px; margin-bottom: 18px; }
  .platform-v2 .platform-v2-lead h2 { font-size: clamp(30px, 7.7vw, 37px); }
  .platform-v2-lead p { font-size: 14px; }
  .platform-v2-card { flex-basis: 87vw; }
}
