/* COEX1ST 1.5.0 — homepage refinements on top of the 1.2.0 design.
   White logo straight on the stars (no circle or glow), a short self/selfless line with its
   explanation on hover/tap, a concise row of options, artwork shown at its real shape, and the
   From Tony / From the community spaces side by side. */

/* Logo: the accepted mark in white on true transparency. No backdrop of any kind. */
.coex-logo-lockup{display:flex;flex-direction:column;align-items:center;gap:14px;margin:0 auto 34px}
.coex-logo{display:block;width:clamp(150px,17vw,224px);height:auto;background:none!important;border:0;box-shadow:none;filter:none}
.coex-logo-lockup .coex1st-submark{margin:0;letter-spacing:.32em}

/* "Practice the selfless." — tap, hover or keyboard focus shows the meaning. */
.coex-meaning{position:relative;z-index:20;margin:2px auto 0;text-align:center}
.coex-meaning summary{display:inline-block;cursor:pointer;list-style:none;font:500 12px/1.6 var(--coex1st-mono,monospace);letter-spacing:.08em;color:#d8c38f;border-bottom:1px dotted #a8956a;padding:2px 0}
.coex-meaning summary::-webkit-details-marker{display:none}
.coex-meaning summary:after{content:' +';color:var(--coex1st-accent,#73d7e8)}
.coex-meaning[open] summary:after{content:' −'}
.coex-meaning>p{display:none;position:absolute;left:50%;top:calc(100% + 10px);transform:translateX(-50%);width:min(380px,calc(100vw - 40px));margin:0;padding:18px 20px;text-align:left;font-size:14px;line-height:1.75;color:#eee8dc;background:#0c161d;border:1px solid #6f7b72;box-shadow:0 16px 44px #000c}
.coex-meaning:hover>p,.coex-meaning:focus-within>p,.coex-meaning[open]>p{display:block}

/* Concise options under the top. */
.coex-options{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 10px;max-width:1100px;margin:42px auto 0;padding:0}
.coex-options a{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:9px 16px;border:1px solid var(--coex1st-line-strong,rgba(155,215,230,.42));border-radius:999px;color:var(--coex1st-text,#e8f0f3);font:500 12px/1 var(--coex1st-mono,monospace);letter-spacing:.06em;text-decoration:none;background:rgba(6,14,20,.55);backdrop-filter:blur(2px)}
.coex-options a:hover,.coex-options a:focus-visible{border-color:var(--coex1st-accent,#73d7e8);color:var(--coex1st-accent,#73d7e8)}
.coex-options a.coex-options-out{border-style:dashed;color:#c9d5d9}

/* Writing: real artwork shapes. Cards share one image height; widths follow each picture. */
.coex-writing-grid.coex-adaptive{display:flex;align-items:stretch;gap:24px}
.coex-adaptive>.coex-writing-card{flex-basis:0;flex-shrink:1;min-width:0}
.coex-adaptive .coex-card-art{height:auto}
.coex-adaptive .coex-card-art img{height:100%;width:100%;object-fit:cover}
.coex-adaptive .coex-card-copy h3{overflow-wrap:anywhere}

/* From Tony | From the community */
.coex-voices{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;padding:76px 0 24px;margin-top:40px;border-top:1px solid var(--coex1st-line,rgba(144,188,204,.18))}
.coex-voices-col{min-width:0}
.coex-voices .thr,.coex-voices .cmt{--t-ink:var(--coex1st-text,#e8f0f3);--t-muted:#93a6b0;--t-line:rgba(144,188,204,.16);--t-cyan:var(--coex1st-accent,#73d7e8);--t-gold:#cab78b;--t-panel:rgba(8,17,24,.92)}
.coex-voices .thr-head h2,.coex-voices .cmt-head h2{font:400 clamp(30px,3.4vw,42px)/1.12 Georgia,serif}
.coex-voices .thr-kicker,.coex-voices .cmt-kicker{font-family:var(--coex1st-mono,monospace);font-weight:500;letter-spacing:.15em}
.coex-voices .thr-post,.coex-voices .cmt-post{background:transparent}

@media(max-width:1000px){.coex-voices{gap:40px}}
@media(max-width:820px){
  .coex-writing-grid.coex-adaptive{display:grid;grid-template-columns:1fr;gap:22px}
  .coex-adaptive .coex-card-art{max-height:78vh}
  .coex-voices{grid-template-columns:1fr;gap:56px;padding-top:56px}
  .coex-options{margin-top:30px;gap:8px}
  .coex-options a{min-height:38px;padding:8px 13px;font-size:11px}
}
@media(max-width:560px){.coex-meaning>p{left:0;transform:none;width:calc(100vw - 36px);margin-left:calc(50% - 50vw + 18px)}}

/* Stars stay on the homepage even if a reading-room picture is chosen for reading pages. */
html.ua-underlay-on body.coex-view-home .coex1st-space{display:block}
body.coex-view-home .coex-underlay{display:none!important}
@media print{html.ua-underlay-on body.coex-view-home .coex1st-space{display:none}}

/* 1.6.0 — TARIAN-style menu under the search, bubbles below the top bar. */
.coex-suite{margin:46px auto 8px}
.coex1st-stage .tb-dock{--dock-top:88px}
@media(max-width:700px){.coex1st-stage .tb-dock{--dock-top:70px}.coex-suite{margin-top:32px}}
.coex-adaptive-grid{align-items:start}
.coex-adaptive-grid .coex-card-art{height:auto;max-height:560px}
.coex-adaptive-grid .coex-card-art img{height:100%;width:100%;object-fit:cover}
@media(max-width:700px){.coex1st-home-main{padding-top:72px}}

/* 1.7.0 — "Central Force" opening scene: logo in the black core, galaxy + wandering elements around it. */
.coex-force{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-top:-64px;height:calc(100vh - 73px);height:calc(100svh - 73px);min-height:540px;overflow:hidden;background:#000;-webkit-mask-image:linear-gradient(#000 80%,transparent);mask-image:linear-gradient(#000 80%,transparent)}
.coex-force canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.coex-force-logo{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);height:calc(min(100vw,100vh - 73px)*.3);height:calc(min(100vw,100svh - 73px)*.3);width:auto;filter:drop-shadow(0 0 22px #000)}
.coex-force-foot{position:absolute;z-index:3;left:0;right:0;bottom:9%;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;text-shadow:0 1px 10px #000}
.coex-force-foot .coex1st-submark{margin:0;letter-spacing:.32em;color:#c9d6da}
.coex-force-cue{font:500 11px/1.4 var(--coex1st-mono,monospace);letter-spacing:.14em;text-transform:uppercase;color:#a9dfe6;text-decoration:none;padding:6px 12px;border:1px solid #a9dfe633;border-radius:999px;background:#000a}
.coex-force-cue:hover,.coex-force-cue:focus-visible{border-color:#a9dfe6;color:#fff}
.coex-force + .coex1st-hero{margin-top:18px}
@media(orientation:portrait){.coex-force-logo{height:calc(min(100vw,100svh - 73px)*.36)}}
@media(max-width:700px){.coex-force{margin-top:-72px;height:calc(100svh - 60px);min-height:480px}.coex-force-foot{bottom:7%}}
.coex-force-foot{bottom:6%}
.coex-force-foot::before{content:'';position:absolute;z-index:-1;left:50%;top:50%;width:520px;max-width:96vw;height:150%;transform:translate(-50%,-50%);background:radial-gradient(ellipse at center,rgba(0,0,0,.72),rgba(0,0,0,.45) 55%,transparent 75%);pointer-events:none}
/* 1.7.1 opening: logo surfaces first, the scene expands from it, words settle in last */
@keyframes coexLogoIn{from{opacity:0;transform:translate(-50%,-50%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes coexFootIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.coex-force-logo{animation:coexLogoIn 2.2s cubic-bezier(.2,.7,.2,1) both}
.coex-force-foot{animation:coexFootIn 1.8s ease-out 5s both}
@media(prefers-reduced-motion:reduce){.coex-force-logo,.coex-force-foot{animation:none}}
