/* Artwork has depth; the real navigation and selection controls stay flat. */
figure { margin: 0; }
.product-plane { overflow: hidden; border: 1px solid #888070; border-radius: 6px; background: #080807; transform: perspective(1600px) rotateX(5deg); transform-origin: center top; box-shadow: 0 26px 80px #0008; }
.product-plane img { display: block; width: 100%; height: auto; }
.arrival-gallery { position: relative; display: flex; flex: 1; min-height: 0; justify-content: center; align-items: center; perspective: 1600px; }
.arrival-gallery .product-plane { height: 100%; width: auto; aspect-ratio: 1600 / 937; max-width: 840px; max-height: 440px; flex: 0 0 auto; }
.arrival-gallery .product-plane img { height: 100%; width: 100%; object-fit: contain; }
.scene-ready .distant-preview { visibility: hidden; }
.distant-preview { position: absolute; width: 210px; opacity: .26; top: 20%; }
.distant-preview img { width: 100%; height: auto; display: block; border: 1px solid #867555; border-radius: 3px; }
.distant-preview figcaption { color: var(--ash); margin-top: 15px; font-size: 12px; }
.distant-left { left: -55px; transform: rotateY(14deg) rotateZ(5deg); }
.distant-right { right: -55px; transform: rotateY(-14deg) rotateZ(-5deg); width: 180px; }
.feature-controls { min-width: 0; }
.feature-controls > h3 { font-size: 19px; margin-bottom: 18px; }
.feature-choice { position: relative; display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--hairline-strong); background: none; padding: 22px 0 22px 16px; color: var(--ash); cursor: pointer; }
.choice-title { display: block; color: var(--porcelain); font-size: 17px; line-height: 1.25; margin: 0; }
.feature-choice[aria-pressed='true']::before, .feature-choice:hover::before, .feature-choice:focus-visible::before { content: ''; position: absolute; width: 2px; height: 22px; background: var(--brushed-gold); top: calc(50% - 11px); left: 0; }
.feature-choice[aria-pressed='true'] .choice-title, .feature-choice:hover .choice-title, .feature-choice:focus-visible .choice-title { color: var(--brushed-gold); }
.feature-choice:focus-visible { text-decoration: none; background: linear-gradient(90deg, #d8b75a0a, transparent); }
.feature-footnote { font-size: 12px; line-height: 1.65; margin: 20px 0 0; color: var(--ash); }
.feature-copy article { border-top: 1px solid var(--hairline-strong); padding: 20px 0; }
.feature-copy h3 { font-size: 19px; margin-bottom: 10px; }
.feature-copy p { font-size: 14px; line-height: 1.65; margin: 0; }
.feature-copy .feature-footnote { font-size: 12px; margin-top: 10px; }
.library-plane { transform: perspective(1600px) rotateY(3deg); }
.library-plane img { max-height: 430px; object-fit: cover; object-position: top; }
.discovery-stage { display: flex; justify-content: center; width: 100%; margin: 0 auto; }
.discovery-art { width: min(840px, 100%, calc((100svh - 300px) * 1.71)); border: 1px solid #575044; border-radius: 6px; overflow: hidden; transform: perspective(1800px) rotateY(2deg); }
.discovery-art img { display: block; width: 100%; height: auto; }
.layout-choice { width: 100%; padding: 22px 0; display: flex; align-items: center; gap: 18px; text-align: left; color: var(--porcelain); background: none; border: 0; border-bottom: 1px solid var(--hairline-strong); cursor: pointer; font-size: 16px; }
.choice-dot { width: 19px; height: 19px; border: 1px solid var(--ash); border-radius: 50%; margin-left: auto; flex: 0 0 auto; }
[aria-pressed='true'] > .choice-dot { border-color: var(--brushed-gold); background: radial-gradient(var(--brushed-gold) 0 5px, transparent 6px); }
.layout-choice[aria-pressed='true'], .layout-choice:hover { color: var(--brushed-gold); }
.choice-description { font-size: 14px; line-height: 1.65; min-height: 48px; margin: 22px 0 8px; }
.reset-preview { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.device-gallery { display: flex; align-items: center; justify-content: center; gap: 45px; padding: 8px 0; width: 100%; max-width: 860px; margin: 0 auto; }
.device { position: relative; text-align: center; }
.device > span { display: block; margin-top: 24px; color: var(--ash); font-size: 14px; }
.device-display { overflow: hidden; border: 1px solid #76726a; border-radius: 12px 12px 4px 4px; padding: 9px; background: #090909; box-shadow: inset 0 0 0 3px #161616; }
.device-display img { width: 100%; height: auto; display: block; border-radius: 4px; }
.device-laptop { width: 48%; }
.laptop-base { width: 116%; height: 12px; background: linear-gradient(#65645f, #1c1c1b); border: 1px solid #6a6860; border-radius: 2px 2px 12px 12px; margin-left: -8%; }
.device-phone { width: 12%; max-width: 145px; transform: perspective(1400px) rotateY(12deg); }
.device-phone .device-display { border-radius: 20px; padding: 7px; }
.device-phone .device-display img { aspect-ratio: 390 / 844; object-fit: contain; border-radius: 14px; }
.device-tv { width: 27%; transform: perspective(1400px) rotateY(-10deg); }
.device-tv .device-display { border-radius: 2px; padding: 5px; }
.tv-stand { width: 35%; height: 16px; border-bottom: 2px solid #77736a; border-left: 2px solid #77736a; border-right: 2px solid #77736a; margin: 0 auto; transform: perspective(60px) rotateX(25deg); }
.download-device { width: min(490px, 70%, calc((100svh - 635px) * 1.7)); margin: 0 auto 18px; transition: width .35s ease; }
.download-stage { height: clamp(220px, calc(100svh - 605px), 320px); margin-bottom: 18px; display: flex; justify-content: center; }
.download-stage .download-device { height: 100%; margin: 0; display: flex; flex-direction: column; }
.download-device .device-display { flex: 1; min-height: 0; }
.download-device img { height: 100%; object-fit: contain; }
.download-device .laptop-base { flex: 0 0 12px; }
.download-selection { text-align: center; min-height: 118px; }
.download-selection h3 { font-size: 25px; margin: 0 0 5px; }
.download-selection p { font-size: 14px; margin: 0; }
.download-selection .chapter-actions { margin-top: 18px; }
.platform-selector { display: flex; max-width: 960px; width: 100%; justify-content: center; margin: 18px auto 0; }
.platform-choice { position: relative; flex: 1; background: none; border: 0; border-right: 1px solid var(--hairline); padding: 10px 18px 16px; color: var(--ash); display: flex; flex-direction: column; gap: 16px; align-items: center; cursor: pointer; }
.platform-choice:last-child { border-right: 0; }
.platform-name { display: flex; gap: 10px; align-items: center; white-space: nowrap; font-size: 14px; }
.platform-name svg { width: 23px; height: 23px; }
.platform-choice .choice-dot { width: 12px; height: 12px; margin: 0; }
.platform-choice[aria-pressed='true'] { color: var(--porcelain); }
.platform-choice[aria-pressed='true']::after { content: ''; position: absolute; bottom: 0; height: 1px; background: var(--brushed-gold); left: 20%; right: 20%; }
.platform-choice:hover { color: var(--brushed-gold); }
.download-note { text-align: center; font-size: 12px; margin: 14px 0 0; }
.download-device[data-device='ios'], .download-device[data-device='android'] { width: 156px; }
.download-device[data-device='ios'] .device-display, .download-device[data-device='android'] .device-display { border-radius: 22px; }
.download-device[data-device='ios'] img, .download-device[data-device='android'] img { aspect-ratio: 390 / 844; object-fit: contain; border-radius: 12px; }
.download-device[data-device='ios'] .laptop-base, .download-device[data-device='android'] .laptop-base { display: none; }
.download-device[data-device='tvos'] .device-display { border-radius: 3px; padding: 6px; }
.download-device[data-device='tvos'] .laptop-base { width: 30%; margin: auto; border-radius: 0; height: 8px; }
@media (max-height: 850px) and (min-width: 900px) {
  .feature-choice { padding-block: 15px; }

  .download-device { width: min(510px, calc((100svh - 595px) * 1.7)); margin-bottom: 18px; }
}
@media (max-width: 899px) {
  .arrival-gallery .product-plane { width: min(640px, 100%); height: auto; min-width: 0; }
  .arrival-gallery { flex: initial; }
  .distant-preview { display: none; }
  .feature-choice { padding: 18px 0 18px 16px; }
  .feature-controls .feature-footnote { margin-top: 14px; }

  .device-gallery { gap: 26px; }
  .device-laptop { width: 54%; }
  .device-phone { width: 17%; }
  .device-tv { width: 23%; }
  .download-device { width: min(520px, 90%); margin-top: 20px; }
  .download-stage { height: 305px; }
  .platform-selector { flex-wrap: wrap; gap: 14px 0; }
  .platform-choice { flex: 0 0 33.333%; padding-inline: 8px; }
  .platform-choice:nth-child(3) { border-right: 0; }
  .download-device[data-device='ios'], .download-device[data-device='android'] { width: 135px; }
}
@media (max-width: 540px) {
  .arrival-gallery { margin: 0 -8px; }
  .arrival-gallery .product-plane { width: min(100%, 334px); transform: perspective(1000px) rotateY(2deg) rotateZ(1deg); }

  .layout-choice { padding-block: 18px; }
  .device-gallery { flex-wrap: wrap; gap: 32px; padding: 10px 5px; }
  .device-laptop { width: 100%; order: -1; }
  .device-phone { width: 24%; }
  .device-tv { width: 58%; }
  .device > span { font-size: 12px; margin-top: 12px; }
  .download-device { margin-top: 15px; width: 94%; }
  .download-stage { height: 240px; }
  .platform-name { font-size: 12px; gap: 6px; }
  .platform-name svg { width: 19px; height: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-plane, .discovery-art, .device { transform: none !important; }
}

.app-capture { position: relative; min-width: 0; margin: 0; }
.capture-window { position: relative; width: 100%; aspect-ratio: 1512 / 885; overflow: hidden; background: #080808; border: 1px solid #665f52; border-radius: 6px; }
.capture-window img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .18s ease; }
.app-capture.is-loading .capture-window img { opacity: .25; }
.capture-label { color: var(--porcelain); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.capture-status { color: var(--ash); font-size: 12px; line-height: 1.5; }
.layout-spread .layout-choice { padding-block: 18px; }
.layout-spread .choice-description { min-height: 54px; }
@media (max-width: 899px) {
  .layout-spread .choice-description { min-height: 54px; }
}

.social-capture .capture-window { aspect-ratio: 1152 / 790; max-height: calc(100svh - 410px); border: 0; background: transparent; }
.social-capture .capture-window img { background: #030303; }
.social-spread { grid-template-columns: minmax(0, 2.5fr) minmax(280px, 1fr); }
@media (max-width: 899px) { .social-spread { grid-template-columns: minmax(0, 1fr); } }

/* Capture names remain available to screen readers. Only loading and failures
   need a second visible message beside the selected feature description. */
.capture-feedback { position: absolute; inset: auto 14px 14px; margin: 0; padding: 0; pointer-events: none; }
.app-capture:is(.is-loading, .has-error) .capture-status {
  position: static; display: block; width: auto; height: auto; margin: 0;
  padding: 10px 12px; clip-path: none; overflow: visible; white-space: normal;
  background: #090908ee; border: 1px solid var(--hairline-strong); border-radius: 4px;
  color: var(--porcelain); font-size: 13px; line-height: 1.5;
}
[data-choice-group='social'] .choice-description { min-height: 54px; margin-top: 22px; }
@media (max-width: 899px) { .discovery-art { width: min(700px, 100%); } }
