/* Interactive 3D Demo Gallery: launch button + pop-up. Reusable; every class/id is prefixed d3d-.
   Markup is built by demo3d.js from the JSON file named in the button's data-d3d-src. */

/* ---------- launch button (hero) ---------- */
.eh-copy .pv-actions.d3d-actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}
.eh-copy .pv-actions.d3d-actions .pv-button{margin-top:0}
.eh-copy .pv-actions.d3d-actions button.d3d-launch{display:inline-flex;align-items:center;justify-content:center;gap:14px;box-sizing:border-box;margin:0;min-height:56px;padding:10px 22px 10px 18px;border:3px solid #22d3e6;border-radius:8px;background:rgba(6,28,43,.82);box-shadow:0 0 18px rgba(34,211,230,.35),inset 0 0 12px rgba(34,211,230,.12);color:#fff;font:inherit;font-size:19px;font-weight:700;letter-spacing:-.01em;line-height:1.2;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:background-color .2s,border-color .2s,box-shadow .2s}
.eh-copy .pv-actions.d3d-actions button.d3d-launch:hover{background:rgba(7,53,74,.92);border-color:#4fe0f2;box-shadow:0 0 26px rgba(34,211,230,.5),inset 0 0 12px rgba(34,211,230,.18)}
.eh-copy .pv-actions.d3d-actions button.d3d-launch:focus-visible{outline:3px solid #7bf8ef;outline-offset:3px}
.d3d-launch svg{width:30px;height:30px;flex:none;color:#22d3e6}
.d3d-launch .d3d-arrow{color:#22d3e6;font-size:20px;font-weight:700;margin-left:2px}
/* info row under the buttons: "12 Genesis demos | Watch videos | Explore interactive 3D" */
.eh-copy .d3d-facts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 0;margin:18px 0 0;padding:0;list-style:none;color:#fff;font-size:15px;font-weight:600;line-height:1.2}
.eh-copy .d3d-facts li{display:inline-flex;align-items:center;gap:10px;padding:0 18px;border-left:1px solid rgba(255,255,255,.28)}
.eh-copy .d3d-facts li:first-child{padding-left:0;border-left:0}
.eh-copy .d3d-facts svg{width:24px;height:24px;flex:none;color:#22d3e6}
.eh-copy .d3d-facts + .fiq-app-row{margin-top:20px}
@media (max-width:600px){
.eh-copy .pv-actions.d3d-actions{flex-direction:column;align-items:flex-start}
.eh-copy .d3d-facts{font-size:13px;gap:10px 18px}
.eh-copy .d3d-facts li{padding:0;gap:7px;border-left:0}
.eh-copy .d3d-facts svg{width:20px;height:20px}
}

/* ---------- shell ---------- */
html.d3d-locked,body.d3d-locked{overflow:hidden}
.d3d-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(2,9,19,.82);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;padding:16px;font-family:inherit;color:#fff;box-sizing:border-box}
.d3d-overlay *,.d3d-overlay *::before,.d3d-overlay *::after{box-sizing:border-box}
.d3d-overlay.d3d-open{display:flex}
.d3d-dialog{position:relative;width:96vw;height:96vh;height:96dvh;background:linear-gradient(155deg,#0f2237,#09182a);border:1px solid #2f4a63;box-shadow:0 24px 90px #000b;border-radius:16px;display:flex;flex-direction:column;overflow:hidden}
.d3d-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px 13px 26px;border-bottom:1px solid #22384d}
.d3d-eyebrow{margin:0 0 3px;font-size:clamp(11px,.8vw,14px);color:#22d3e6;font-weight:800;letter-spacing:.12em;text-transform:uppercase;line-height:1.3}
.d3d-dialog h2{margin:0;font-family:Barlow,Arial,sans-serif;font-weight:600;font-size:clamp(22px,2vw,36px);letter-spacing:-.015em;line-height:1.1;color:#fff}
.d3d-close{flex:none;display:grid;place-items:center;width:46px;height:46px;padding:0;background:#10283c;border:1px solid #456076;border-radius:10px;color:#fff;cursor:pointer;transition:background-color .15s}
.d3d-close:hover{background:#23455d}
.d3d-close svg{width:22px;height:22px}
.d3d-overlay button:focus-visible,.d3d-overlay a:focus-visible{outline:3px solid #7bf8ef;outline-offset:2px}
.d3d-overlay svg{display:block}

.d3d-body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:45% minmax(0,1fr);overflow:hidden}

/* ---------- left: picker ---------- */
.d3d-side{display:flex;flex-direction:column;min-width:0;min-height:0;padding:18px 0 14px 24px}
.d3d-side-label{flex:none;margin:0 24px 12px 0;color:#e6eef5;font-size:clamp(14px,1vw,18px);font-weight:600;line-height:1.3}
.d3d-side-label span{color:#8ea5b8;font-weight:500}
.d3d-grid{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:10px;padding:3px 16px 4px 3px;scrollbar-width:thin;scrollbar-color:#3a536b transparent}
.d3d-grid::-webkit-scrollbar{width:8px}
.d3d-grid::-webkit-scrollbar-track{background:transparent}
.d3d-grid::-webkit-scrollbar-thumb{background:#34506a;border-radius:8px}
.d3d-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;text-align:left;border:1px solid #33506a;background:#0e2033;color:#fff;border-radius:9px;cursor:pointer;font:inherit;transition:border-color .2s cubic-bezier(.16,1,.3,1),background-color .2s cubic-bezier(.16,1,.3,1),box-shadow .2s}
.d3d-card:hover{border-color:#6a8aa6;background:#122940}
.d3d-card.d3d-active{border-color:#22d3e6;background:#12324a;box-shadow:0 0 0 1px #22d3e6,0 0 14px #22d3e670}
.d3d-ph{display:grid;place-items:center;width:100%;aspect-ratio:16/9;background:#1a2c40;color:#3d5870}
.d3d-ph svg{width:28%;height:auto;max-height:60%}
.d3d-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#1a2c40}/* 16:9 = Genesis thumbnail format */
@media (min-width:901px){.d3d-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:6px 10px;padding-bottom:1px}
.d3d-grid .d3d-card span{min-height:0;margin:6px 9px 7px;-webkit-line-clamp:1;line-clamp:1;white-space:nowrap;text-overflow:ellipsis;display:block}}
.d3d-card span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;margin:7px 9px 8px;min-height:2.5em;font-size:clamp(11px,.85vw,15px);font-weight:700;line-height:1.25;text-wrap:balance}
.d3d-tag{position:absolute;top:clamp(5px,.5vw,9px);left:clamp(5px,.5vw,9px);z-index:1;margin:0;padding:.22em .62em .26em;border-radius:6px;background:rgba(6,18,32,.78);color:#fff;font-style:normal;font-size:clamp(10px,.72vw,13px);font-weight:600;line-height:1.25;letter-spacing:0;pointer-events:none;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.d3d-overlay .d3d-card:focus-visible{outline-offset:-2px}
.d3d-foot{flex:none;margin:10px 24px 0 0;color:#7f97ab;font-size:clamp(12px,.8vw,14px);line-height:1.3}


/* ---------- right: viewer ---------- */
.d3d-viewer{display:flex;flex-direction:column;min-width:0;min-height:0;padding:16px 24px 18px;border-left:1px solid #22384d;overflow-y:auto;overscroll-behavior:contain}
.d3d-title{margin:0;font-family:Barlow,Arial,sans-serif;font-weight:600;font-size:clamp(24px,2.1vw,38px);letter-spacing:-.015em;line-height:1.1;color:#fff}
.d3d-desc{margin:6px 0 14px;color:#e2ecf4;font-size:clamp(14px,1.05vw,19px);line-height:1.35}
.d3d-media{position:relative;flex:none;width:100%;aspect-ratio:16/9;border:1px solid #3d5870;border-radius:12px;overflow:hidden;background:#0a1828}
.d3d-media video,.d3d-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;background:#0a1828}
.d3d-media img{object-fit:cover}
.d3d-media video[hidden],.d3d-media img[hidden]{display:none}
.d3d-yt{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000}
.d3d-ytwrap{position:absolute;inset:0;background:#000}
.d3d-media:fullscreen,.d3d-media:-webkit-full-screen{border:0;border-radius:0}
/* slim EON control bar under a YouTube video (YouTube's own bar is off) */
.d3d-vbar{flex:none;display:flex;align-items:center;gap:12px;margin-top:8px;padding:6px 10px;border:1px solid #2b4560;border-radius:10px;background:#0b1b2c}
.d3d-vbar button{display:grid;place-items:center;width:34px;height:34px;flex:none;padding:0;border:0;border-radius:8px;background:transparent;color:#e6f6fb;cursor:pointer}
.d3d-vbar button:hover{background:#15304a;color:#22d3e6}
.d3d-vbar button:focus-visible,.d3d-vb-seek:focus-visible{outline:2px solid #7bf8ef;outline-offset:1px}
.d3d-vbar svg{width:20px;height:20px}
.d3d-vb-play{color:#22d3e6!important}
.d3d-vb-seek{flex:1 1 auto;min-width:60px;height:4px;margin:0;accent-color:#22d3e6;cursor:pointer}
.d3d-vb-time{flex:none;min-width:84px;color:#9fb3c4;font-size:13px;font-variant-numeric:tabular-nums;text-align:right}
.d3d-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:clamp(56px,6vw,92px);height:clamp(56px,6vw,92px);padding:0;border:2px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(6,18,32,.55);color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);transition:background-color .2s,transform .2s,border-color .2s}
.d3d-play svg{width:44%;height:44%;margin-left:6%}
.d3d-play:hover{background:rgba(10,60,84,.72);border-color:#fff;transform:translate(-50%,-50%) scale(1.06)}
.d3d-play[hidden]{display:none}
.d3d-soon{position:absolute;left:50%;bottom:7%;transform:translateX(-50%);margin:0;padding:8px 16px;border-radius:999px;background:rgba(5,18,32,.82);border:1px solid #ffffff40;color:#fff;font-size:14px;font-weight:600;line-height:1.2;pointer-events:none;white-space:nowrap}
.d3d-soon[hidden]{display:none}
.d3d-act{flex:none;display:flex;align-items:center;gap:22px;margin-top:18px}
.d3d-open3d{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:60px;padding:0 34px 0 26px;border:2px solid #22d3e6;border-radius:12px;background:#0b2a3d;color:#fff;font:inherit;font-size:clamp(18px,1.4vw,24px);font-weight:700;cursor:pointer;box-shadow:0 0 16px #22d3e63d;transition:background-color .2s,box-shadow .2s}
.d3d-open3d svg{width:30px;height:30px;flex:none;color:#22d3e6}
.d3d-open3d:hover{background:#0f3a54;box-shadow:0 0 22px #22d3e65c}
.d3d-open3d[aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:none;background:#0b2a3d}
.d3d-open3d[aria-disabled="true"]:hover{background:#0b2a3d;box-shadow:none}
.d3d-actdiv{flex:none;align-self:stretch;width:1px;background:#2c4660}
.d3d-acttext{min-width:0;font-size:clamp(14px,1.05vw,18px);line-height:1.45;color:#d5e2ec}
.d3d-acttext p{margin:0}
.d3d-acttext .d3d-note{color:#22d3e6;font-weight:700}
.d3d-acttext .d3d-note[hidden]{display:none}

@media (max-height:820px) and (min-width:901px){
.d3d-viewer{padding-top:12px}
.d3d-desc{margin-bottom:10px}
.d3d-act{margin-top:12px}
.d3d-open3d{min-height:52px}
}
@media (prefers-reduced-motion:reduce){.d3d-play,.d3d-card,.d3d-open3d,.d3d-close{transition:none}}

/* ---------- stacked (tablet / phone) ---------- */
@media (max-width:900px){
.d3d-overlay{padding:8px}
.d3d-dialog{width:100%;height:100%;border-radius:12px}
.d3d-head{padding:12px 12px 12px 18px}
.d3d-body{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain}
.d3d-viewer{order:1;flex:none;border-left:0;border-bottom:1px solid #22384d;padding:14px 16px 18px;overflow:visible}
.d3d-media{order:1;margin-bottom:14px}
.d3d-vbar{order:1;margin:-6px 0 14px}
.d3d-title{order:2;font-size:24px}
.d3d-desc{order:3;margin-bottom:0}
.d3d-act{order:4}
.d3d-side{order:2;flex:none;min-height:auto;padding:14px 16px 20px}
.d3d-side-label{margin-right:0}
.d3d-grid{flex:none;overflow:visible;grid-template-columns:repeat(3,minmax(0,1fr));padding:3px}
.d3d-foot{margin-right:0}
}
@media (max-width:600px){
.d3d-overlay{padding:0}
.d3d-dialog{border-radius:0;border:0}
.d3d-head{padding:10px 10px 10px 14px}
.d3d-dialog h2{font-size:20px}
.d3d-eyebrow{font-size:10.5px}
.d3d-close{width:44px;height:44px}
.d3d-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.d3d-act{flex-direction:column;align-items:stretch;gap:12px}
.d3d-open3d{min-height:54px;padding:0 22px}
.d3d-actdiv{width:auto;height:1px;align-self:auto}
.d3d-soon{font-size:12.5px;padding:6px 12px}
}
