/* DATUM coverflow adapted from existing published page; exclusive to preview product. */
.datum-carousel{padding:85px 0 90px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center}
.datum-carousel-heading h2{font:500 clamp(2.6rem,5vw,4.9rem)/1.07 Georgia,serif;letter-spacing:-.045em;margin:12px auto 18px}
.datum-carousel-heading>p:last-child{max-width:580px;color:var(--muted);margin:0 auto;line-height:1.75}
.datum-carousel-stage{position:relative;min-height:590px;margin:20px 0 0;perspective:1350px;overflow:hidden;touch-action:pan-y;user-select:none}
.datum-phone-list{position:relative;list-style:none;padding:0;margin:0;height:570px;transform-style:preserve-3d}
.datum-phone-item{position:absolute;top:50%;left:50%;width:243px;height:528px;margin:0;transform:translate(-50%,-50%) translateX(calc(var(--offset,0) * 245px)) rotateY(calc(var(--offset,0) * -32deg)) scale(var(--scale,.8));transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.75,.2,1),opacity .45s ease,filter .45s ease;opacity:0;visibility:hidden;pointer-events:none;filter:brightness(.65);z-index:var(--z,0)}
.datum-phone-item[data-position="0"]{--offset:0;--scale:1;--z:6;opacity:1;visibility:visible;pointer-events:auto;filter:none}
.datum-phone-item[data-position="-1"]{--offset:-1;--scale:.86;--z:5;opacity:.82;visibility:visible;pointer-events:auto}
.datum-phone-item[data-position="1"]{--offset:1;--scale:.86;--z:5;opacity:.82;visibility:visible;pointer-events:auto}
.datum-phone-item[data-position="-2"]{--offset:-1.7;--scale:.68;--z:3;opacity:.13;visibility:visible}
.datum-phone-item[data-position="2"]{--offset:1.7;--scale:.68;--z:3;opacity:.13;visibility:visible}
.datum-phone{position:relative;display:block;width:100%;height:100%;padding:8px;border:2px solid #505a60;border-radius:37px;background:#080b0d;box-shadow:0 22px 35px rgba(0,0,0,.5),inset 0 0 0 2px #171c20;cursor:pointer;overflow:hidden}
.datum-phone:focus-visible{outline:3px solid #a8d6e1;outline-offset:5px}
.datum-phone img{display:block;width:100%;height:100%;object-fit:cover;border-radius:28px}
.datum-phone-top{position:absolute;left:50%;top:15px;transform:translateX(-50%);width:31%;height:21px;background:#06090c;border-radius:19px;z-index:2;box-shadow:0 1px 3px #111}
.datum-phone-shine{position:absolute;inset:2px;border-radius:33px;pointer-events:none;box-shadow:inset 2px 0 3px rgba(255,255,255,.18),inset -2px 0 3px rgba(255,255,255,.12)}
.datum-carousel-arrow{position:absolute;top:48%;z-index:10;width:48px;height:48px;border:1px solid rgba(180,218,230,.35);border-radius:50%;background:rgba(10,28,40,.86);color:#e0f1f4;font-size:1.45rem;cursor:pointer}
.datum-carousel-arrow:hover{background:#245062}.datum-carousel-prev{left:10px}.datum-carousel-next{right:10px}
.datum-carousel-detail{max-width:560px;min-height:185px;margin:0 auto}
.datum-carousel-detail>span{font-size:.76rem;letter-spacing:.2em;color:#99cad8}
.datum-carousel-detail h3{font:500 clamp(1.6rem,3vw,2.4rem)/1.15 Georgia,serif;margin:14px 0 10px}
.datum-carousel-detail p{color:var(--soft);line-height:1.65;margin:0 auto 20px}
.datum-carousel-dots{display:flex;justify-content:center;gap:11px}
.datum-carousel-dots button{width:9px;height:9px;background:#456172;border:0;border-radius:100%;padding:0;cursor:pointer}
.datum-carousel-dots button[aria-pressed="true"]{background:#b8e5ed;box-shadow:0 0 0 4px rgba(184,229,237,.12)}
@media(max-width:850px){.datum-phone-item{width:196px;height:425px;transform:translate(-50%,-50%) translateX(calc(var(--offset,0) * 183px)) rotateY(calc(var(--offset,0) * -33deg)) scale(var(--scale,.8))}.datum-carousel-stage{min-height:490px}.datum-phone-list{height:470px}.datum-phone{border-radius:31px}.datum-phone img{border-radius:23px}.datum-phone-shine{border-radius:28px}.datum-phone-top{height:17px;top:13px}}
@media(max-width:550px){.product-datum .datum-carousel{padding:58px 0 65px}.datum-phone-item{width:160px;height:346px;transform:translate(-50%,-50%) translateX(calc(var(--offset,0) * 143px)) rotateY(calc(var(--offset,0) * -35deg)) scale(var(--scale,.8))}.datum-carousel-stage{min-height:395px;margin-top:10px}.datum-phone-list{height:380px}.datum-phone{padding:5px;border-radius:26px}.datum-phone img{border-radius:20px}.datum-phone-shine{border-radius:22px}.datum-phone-top{height:13px;top:10px}.datum-carousel-arrow{width:38px;height:38px;top:46%}.datum-carousel-prev{left:0}.datum-carousel-next{right:0}}
@media(prefers-reduced-motion:reduce){.datum-phone-item{transition:none}}


/* 2.7: prioritize screenshot readability in the 3D DATUM coverflow.
   Larger central phone, closer and quieter neighboring phones. */
@media(min-width:851px){
  .datum-carousel-stage{min-height:700px}
  .datum-phone-list{height:685px}
  .datum-phone-item{
    width:292px;
    height:635px;
    transform:translate(-50%,-50%) translateX(calc(var(--offset,0) * 254px))
      rotateY(calc(var(--offset,0) * -25deg)) scale(var(--scale,.8));
  }
  .datum-phone-item[data-position="-1"],
  .datum-phone-item[data-position="1"]{--scale:.73;opacity:.7;filter:brightness(.72)}
  .datum-phone-item[data-position="-2"],
  .datum-phone-item[data-position="2"]{opacity:.08}
}
@media(min-width:551px) and (max-width:850px){
  .datum-carousel-stage{min-height:550px}
  .datum-phone-list{height:535px}
  .datum-phone-item{
    width:225px;
    height:489px;
    transform:translate(-50%,-50%) translateX(calc(var(--offset,0) * 191px))
      rotateY(calc(var(--offset,0) * -26deg)) scale(var(--scale,.8));
  }
  .datum-phone-item[data-position="-1"],
  .datum-phone-item[data-position="1"]{--scale:.75;opacity:.69;filter:brightness(.72)}
}
@media(max-width:550px){
  .datum-phone-item[data-position="-1"],
  .datum-phone-item[data-position="1"]{--scale:.72;opacity:.66;filter:brightness(.7)}
}


/* 2.8: limit coverflow to the focused trio; tighten caption spacing */
.datum-phone-item[data-position="-2"],
.datum-phone-item[data-position="2"]{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
@media(min-width:851px){
  .datum-carousel-stage{min-height:665px}
  .datum-phone-list{height:655px}
}
@media(min-width:551px) and (max-width:850px){
  .datum-carousel-stage{min-height:530px}
  .datum-phone-list{height:520px}
}
@media(max-width:550px){
  .datum-carousel-stage{min-height:380px}
  .datum-phone-list{height:365px}
}
.datum-carousel-detail{margin-top:-2px}

.datum-carousel{border-color:#a7c7bb25}
.datum-carousel .datum-carousel-heading>p:last-child{max-width:630px}

/* Optional full gallery preserves the Work enlargement and metadata experience. */
.datum-detail-gallery{margin:0 auto 68px;border-top:1px solid #9db6a42e}
.datum-detail-gallery>summary{display:block;cursor:pointer;text-align:center;margin:0 auto;padding:20px 16px;color:#b8d0c3;font:600 .87rem/1.5 system-ui,sans-serif;text-decoration:underline;text-underline-offset:5px}
.datum-detail-gallery>summary::marker{content:""}
.datum-detail-gallery>summary:focus-visible{outline:2px solid #b8d0c3;outline-offset:2px}
.datum-detail-gallery .gallery-section{padding-top:25px}
.datum-carousel-heading h2{max-width:980px}
.datum-carousel{scroll-margin-top:115px}
@media(max-width:550px){.datum-carousel{padding:56px 0 25px}.datum-carousel-detail{padding:0 10px}}
/* Keep the small visual dots while exposing full touch/keyboard targets. */
.datum-carousel-dots{gap:0;flex-wrap:wrap}
.datum-carousel-dots button{width:44px;height:44px;position:relative;background:transparent;box-shadow:none;flex:none}
.datum-carousel-dots button::after{content:'';position:absolute;inset:17px;border-radius:50%;background:#8ca9b2}
.datum-carousel-dots button[aria-pressed=true]{background:transparent;box-shadow:none}
.datum-carousel-dots button[aria-pressed=true]::after{background:#b8e5ed;box-shadow:0 0 0 3px #b8e5ed22}
.datum-carousel-detail p{color:var(--muted)}
.datum-carousel-arrow{min-width:44px;min-height:44px}
