/* Clear Horizon — experimental structure module only. 2026-10-26 */
.hero-a-visual.hero-structure{padding:0;overflow:hidden;background:linear-gradient(160deg,#f1f8f4 0%,#e8f3f0 100%);border:1px solid #d4e6df;border-radius:22px;box-shadow:0 24px 58px rgba(9,68,63,.07);position:relative}
.hero-structure .structure-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 8px;gap:10px}
.hero-structure .structure-heading .structure-kicker{font-size:10px;font-weight:800;letter-spacing:.15em;color:#53827d;text-transform:uppercase}
.hero-structure .structure-heading .structure-chip{font-size:10px;letter-spacing:.05em;background:#ffffffad;border:1px solid #c8ded7;border-radius:30px;padding:6px 9px;color:#426e6a;font-weight:700;white-space:nowrap}
.hero-structure .structure-stage{position:relative;height:clamp(295px,29vw,395px);isolation:isolate;outline:none;background:radial-gradient(circle at 53% 48%,#fff9 0%,#f3faf43d 48%,transparent 75%)}
.hero-structure .structure-stage:focus-visible{outline:3px solid #d99138;outline-offset:-5px;border-radius:10px}
.hero-structure .structure-canvas{position:absolute;inset:0;touch-action:none;cursor:grab}
.hero-structure .structure-canvas:active{cursor:grabbing}
.hero-structure .structure-placeholder{position:absolute;inset:0;z-index:0;display:grid;place-content:center;gap:15px;text-align:center;color:#507a76;pointer-events:none;font-size:12px;font-weight:650;padding:25px}
.hero-structure .structure-placeholder svg{margin:auto;width:100px;height:100px;opacity:.5}
.hero-structure .structure-stage.is-ready .structure-placeholder{display:none}
.hero-structure .structure-stage.is-error .structure-placeholder{display:grid;pointer-events:auto}
.hero-structure .structure-stage.is-error .structure-placeholder svg{display:none}
.hero-structure .structure-stage.is-error .structure-placeholder p{margin:0;max-width:280px;line-height:1.55}
.hero-structure .structure-stage.is-error .structure-placeholder a{font-weight:700;text-decoration:underline}
.hero-structure .structure-toolbar{position:absolute;z-index:3;bottom:12px;right:13px;display:flex;align-items:center;gap:7px}
.hero-structure .structure-toolbar button{display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:50%;border:1px solid #d1e5df;background:#fffffff2;color:#0a5b5c;cursor:pointer;box-shadow:0 2px 12px #183a3c10;transition:background .2s, transform .2s}
.hero-structure .structure-toolbar button:hover{background:#dcf2eb;transform:translateY(-1px)}
.hero-structure .structure-toolbar button:focus-visible{outline:3px solid #d99138;outline-offset:3px}
.hero-structure .structure-toolbar button:disabled{opacity:.4;cursor:wait}
.hero-structure .structure-toolbar button[aria-pressed=true]{background:#0a5b5c;color:white;border-color:#0a5b5c}
.hero-structure .structure-toolbar svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hero-structure .structure-caption{border-top:1px solid #cfdfd9;padding:15px 20px 17px;display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
.hero-structure .structure-caption strong{display:block;font-size:14px;color:#163e42;line-height:1.35}
.hero-structure .structure-caption small{display:block;font-size:11px;color:#53736d;line-height:1.55;margin-top:3px}
.hero-structure .structure-caption a{font-size:11px;color:#0a6868;font-weight:740;text-decoration:none;white-space:nowrap;padding-top:3px}
.hero-structure .structure-caption a:hover{text-decoration:underline}
.hero-structure .structure-viewer-instructions{position:absolute;z-index:2;bottom:18px;left:19px;color:#65837d;font-size:10px;letter-spacing:.01em;pointer-events:none;text-shadow:0 1px white}
.hero-structure .structure-stage:fullscreen{height:100%;background:#f3f9f6}
.hero-structure .structure-stage:fullscreen .structure-toolbar{bottom:25px;right:25px}
@media(max-width:720px){.hero-structure .structure-stage{height:315px}.hero-structure .structure-heading{padding:16px 17px 6px}.hero-structure .structure-caption{padding:14px 17px 16px}.hero-structure .structure-viewer-instructions{left:15px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.hero-structure .structure-toolbar button{transition:none}.hero-structure .structure-toolbar button:hover{transform:none}}

/* Nature-inspired ACLY complex. Underlying model remains experimental PDB 9R90. */
.hero-structure .structure-stage{height:clamp(355px,34vw,445px);background:radial-gradient(ellipse at 50% 53%,#ffffff 0%,#f4faf7 62%,#eaf5f1 100%)}
.hero-structure .structure-heading{padding-bottom:5px}
.hero-structure .structure-kicker{color:#276c71!important}
.hero-structure .structure-reference{position:absolute;inset:0;z-index:0;display:grid;place-items:center;overflow:hidden;pointer-events:none}
.hero-structure .structure-reference img{width:95%;height:98%;object-fit:contain;mix-blend-mode:multiply;opacity:.9}
/* Loading: the still shows only as a soft silhouette, so it reads as a placeholder rather than a second model.
   Ready: the live 3D model fades in over it. Error: the still sharpens into the backup image. (2026-11-28) */
.hero-structure .structure-reference{transition:opacity .6s ease .15s,visibility 0s linear .75s}
.hero-structure .structure-reference img{transition:filter .5s ease,opacity .5s ease,transform .5s ease}
.hero-structure .structure-stage:not(.is-error) .structure-reference img{filter:blur(9px) saturate(.55);opacity:.32;transform:scale(.96)}
.hero-structure .structure-stage.is-ready .structure-reference{opacity:0;visibility:hidden}
.hero-structure .structure-canvas{opacity:0;transition:opacity .7s ease}
.hero-structure .structure-stage.is-ready .structure-canvas{opacity:1}
.hero-structure .structure-stage:not(.is-ready) .structure-viewer-instructions{visibility:hidden}
@media(prefers-reduced-motion:reduce){.hero-structure .structure-reference,.hero-structure .structure-reference img,.hero-structure .structure-canvas{transition:none}}
.hero-structure .structure-placeholder{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;pointer-events:none;padding:0 24px 16px;z-index:1;gap:0}
.hero-structure .structure-loading-text{color:#58776f;background:#f7fcf9e8;border:1px solid #cddfd6;border-radius:999px;padding:7px 14px;font-size:11px;box-shadow:0 3px 15px #183e3410}
.hero-structure .structure-stage.is-error .structure-placeholder{inset:auto 12px 12px;display:block;border-radius:12px;background:#f7fcf9f2;border:1px solid #d5e6e0;box-shadow:0 10px 20px #0c313015;padding:14px 15px;font-size:11px;max-width:290px;z-index:4}
.hero-structure .structure-stage.is-error .structure-placeholder p{max-width:none;margin:0 0 7px}
.hero-structure .structure-stage.is-error .structure-viewer-instructions{display:none}
.hero-structure .structure-stage.is-error .structure-view-switch{display:none}
.hero-structure .structure-canvas{z-index:1}
.hero-structure .structure-stage:not(.is-ready) .structure-toolbar{display:none}
.hero-structure .structure-view-switch{position:absolute;z-index:3;top:10px;left:14px;display:flex;gap:4px;padding:4px;background:#fffdf6e8;border:1px solid #d7e9e2;border-radius:999px;backdrop-filter:blur(7px);box-shadow:0 2px 12px #143f330a}
.hero-structure .structure-view-switch button{border:0;background:transparent;border-radius:999px;color:#3a6a66;font-weight:700;letter-spacing:.01em;font-size:11px;padding:9px 13px;white-space:nowrap;cursor:pointer}
.hero-structure .structure-view-switch button[aria-pressed="true"]{color:white;background:#155d60;box-shadow:0 2px 8px #155d6033}
.hero-structure .structure-view-switch button:hover:not(:disabled){background:#dcefe8;color:#123e41}
.hero-structure .structure-view-switch button[aria-pressed="true"]:hover{background:#155d60;color:white}
.hero-structure .structure-view-switch button:focus-visible{outline:3px solid #d99138;outline-offset:2px}
.hero-structure .structure-view-switch button:disabled{cursor:wait;opacity:.7}
.hero-structure .structure-caption small{font-variant-numeric:tabular-nums}
@media(max-width:720px){
  .hero-structure .structure-stage{height:360px}
  .hero-structure .structure-reference img{width:100%;height:92%}
  .hero-structure .structure-view-switch{top:8px;left:9px}
  .hero-structure .structure-view-switch button{padding:8px 11px;font-size:10px}
  .hero-structure .structure-stage.is-error .structure-placeholder{max-width:calc(100% - 28px);left:14px;right:14px;margin:auto}
  .hero-structure .structure-viewer-instructions{bottom:16px;left:12px}
}
@media(prefers-reduced-motion:reduce){.hero-structure .structure-view-switch button{transition:none}}

/* Colour key (matches the domain colours in structure-viewer.js) */
.hero-structure .structure-legend{list-style:none;margin:0;padding:0 20px 16px;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px;font-weight:650;color:#3d5f5b}.hero-structure .structure-legend li{display:inline-flex;align-items:center;gap:6px}.hero-structure .structure-legend .key{width:10px;height:10px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}.hero-structure .key-lig{background:#2fb35a}.hero-structure .key-ccsb{background:#c3c8cb}.hero-structure .key-ccsa{background:#4a97d4}.hero-structure .key-csh{background:#efc350}.hero-structure .key-coa{background:#cc6aa5}@media(max-width:720px){.hero-structure .structure-legend{padding:0 17px 15px}}
