/* The reference ZIP's orb, floating chips, preview window and orbit motifs,
   translated into the current square-edged institutional visual language. */
.site-showcase { padding-top: 52px; }
.artifact-window { border: 1px solid var(--line2); background: var(--surface); }
.artifact-window-bar { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: var(--surface2); padding: 14px 22px; color: var(--muted); font: 10px var(--font-mono); letter-spacing: .1em; }
.artifact-window-mark { display: flex; align-items: end; gap: 3px; height: 15px; }
.artifact-window-mark i { width: 3px; height: 9px; background: var(--muted); }
.artifact-window-mark i:nth-child(2) { height: 15px; background: var(--accent); }
.artifact-window-mark i:last-child { height: 12px; }
.artifact-motion-button { display: inline-flex; align-items: center; gap: 7px; margin-inline-start: auto; padding: 5px 0; border: 0; background: none; color: var(--sub); font: 12px var(--font-ui); letter-spacing: normal; white-space: nowrap; }
.artifact-motion-button .icon { width: 14px; height: 14px; }
.artifact-motion-button:hover { color: var(--accent-ink); }
.artifact-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.artifact-visual { display: flex; flex-direction: column; justify-content: center; padding: 24px 24px 30px; min-width: 0; border-inline-end: 1px solid var(--line); background: var(--bg); }
.artifact-scene { position: relative; width: 100%; max-width: 580px; margin: auto; }
.artifact-orb { width: 100%; height: auto; display: block; overflow: visible; }
.artifact-stop-accent { stop-color: var(--accent); }
.artifact-stop-ink { stop-color: var(--text); }
.artifact-sphere { fill: var(--surface); fill-opacity: .4; stroke-width: .9; }
.artifact-point { fill: var(--muted); }
.artifact-point-accent { fill: var(--accent); }
.artifact-orbits { transform-origin: 280px 270px; stroke-width: .8; animation: artifact-orbit 52s linear infinite; }
.artifact-orbit-primary { stroke: var(--accent); stroke-opacity: .65; }
.artifact-orbit-secondary { stroke: var(--muted); stroke-opacity: .6; }
.artifact-node { fill: var(--accent); stroke: var(--surface); stroke-width: 5; }
.artifact-node.secondary { fill: var(--text); }
.artifact-reticle { stroke: var(--muted); stroke-opacity: .5; stroke-width: .7; }
.artifact-centre-ring { fill: none; stroke: var(--accent); stroke-opacity: .4; }
.artifact-floating-card { position: absolute; inset-block-start: 11%; inset-inline-end: 0; display: flex; gap: 12px; align-items: center; max-width: 220px; padding: 16px; background: var(--surface); border: 1px solid var(--line2); border-inline-start: 2px solid var(--accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 5%, transparent); animation: artifact-float 9s ease-in-out infinite; }
.artifact-floating-card.secondary { inset-block-start: auto; inset-block-end: 12%; inset-inline-start: 0; inset-inline-end: auto; animation-delay: -4.5s; border-inline-start-color: var(--muted); }
.artifact-floating-card > .icon { width: 20px; height: 20px; color: var(--accent-ink); flex: none; }
.artifact-floating-card small { display: block; color: var(--muted); font: 8px var(--font-mono); letter-spacing: .09em; margin-bottom: 6px; }
.artifact-floating-card strong { font-size: 12px; font-weight: 550; white-space: nowrap; }
.artifact-visual-caption { text-align: center; padding-top: 10px; }
.artifact-visual-caption > span { font: 10px var(--font-mono); letter-spacing: .14em; color: var(--sub); }
.artifact-visual-caption p { font-size: 12px; color: var(--muted); margin-top: 9px; }
.artifact-preview { min-width: 0; padding: 24px 30px; }
.artifact-tabs { display: flex; border-bottom: 1px solid var(--line2); gap: 20px; }
.artifact-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 12px 0 14px; background: none; font-size: 13px; color: var(--sub); }
.artifact-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--text); font-weight: 600; }
.artifact-tabs button:hover { color: var(--accent-ink); }
.artifact-panel { min-height: 430px; padding-top: 30px; display: flex; flex-direction: column; animation: artifact-panel-in .24s ease-out; }
.artifact-panel[hidden] { display: none; }
.artifact-panel > .site-text-link { margin-top: auto; padding-top: 26px; align-self: start; }
.artifact-record-heading { display: flex; gap: 14px; align-items: start; margin-bottom: 30px; }
.artifact-record-icon { display: grid; place-items: center; width: 34px; height: 38px; border: 1px solid var(--line); background: var(--surface2); flex: none; color: var(--accent-ink); }
.artifact-record-icon .icon { width: 18px; height: 18px; }
.artifact-eyebrow { font: 9px var(--font-mono); color: var(--muted); letter-spacing: .1em; }
.artifact-record-heading h3 { font-size: clamp(21px, 2vw, 27px); font-weight: 650; line-height: 1.18; letter-spacing: -.025em; margin-top: 10px; }
.artifact-record-fields { margin: 0; }
.artifact-record-fields > div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.artifact-record-fields dt { color: var(--muted); font-size: 12px; }
.artifact-record-fields dd { margin: 0; text-align: end; font-size: 14px; color: var(--text); }
.artifact-record-note { display: flex; gap: 12px; padding: 16px; margin-top: 18px; border-inline-start: 2px solid var(--accent); background: var(--surface2); }
.artifact-record-note .icon { flex: none; width: 17px; color: var(--accent-ink); }
.artifact-record-note p, .artifact-summary { font-size: 13px; line-height: 1.7; color: var(--sub); }
.artifact-review-steps { padding: 0; margin: 0; list-style: none; }
.artifact-review-steps li { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.artifact-review-steps li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 14px; top: 29px; bottom: 0; width: 1px; background: var(--line2); }
.artifact-step-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line2); flex: none; color: var(--muted); }
.artifact-step-icon .icon { width: 14px; height: 14px; }
.artifact-review-steps .complete .artifact-step-icon { color: var(--text); background: var(--surface2); }
.artifact-review-steps .current .artifact-step-icon { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-bg); }
.artifact-review-steps strong { font-size: 14px; font-weight: 600; }
.artifact-review-steps p { font-size: 12px; color: var(--sub); margin-top: 5px; line-height: 1.6; }
.artifact-responsibilities { border-top: 1px solid var(--line); }
.artifact-responsibilities > div { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.artifact-responsibilities > div > .icon { width: 19px; height: 19px; color: var(--muted); flex: none; }
.artifact-responsibilities strong { display: block; font-size: 14px; font-weight: 600; }
.artifact-responsibilities small { display: block; margin-top: 4px; color: var(--sub); font-size: 12px; }
.artifact-responsibilities i { display: block; margin-inline-start: auto; width: 7px; height: 7px; border: 1px solid var(--accent); }
.artifact-summary { margin-top: 20px; }
.artifact-window-foot { display: flex; align-items: center; gap: 8px; padding: 14px 22px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); }
.artifact-window-foot .icon { width: 13px; height: 13px; }
.artifact-trace { border: 1px solid var(--line); padding: 24px 28px 30px; margin-bottom: 28px; background: var(--surface); }
.artifact-trace-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.artifact-trace-heading > span:last-child { font-size: 11px; color: var(--muted); }
.artifact-trace ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 22px 0 0; padding: 0; }
.artifact-trace li { position: relative; display: flex; flex-direction: column; align-items: start; gap: 9px; }
.artifact-trace li:not(:last-child)::before { content: ''; position: absolute; top: 15px; inset-inline-start: 32px; width: calc(100% - 32px); height: 1px; background: var(--line2); transform-origin: left center; }
.artifact-trace.was-visible li:not(:last-child)::before { animation: artifact-trace-in 1.2s ease-out both; }
.artifact-trace.was-visible li:nth-child(2)::before { animation-delay: .12s; }
.artifact-trace.was-visible li:nth-child(3)::before { animation-delay: .24s; background: var(--accent); }
.artifact-trace-node { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line2); border-radius: 50%; background: var(--surface); margin-bottom: 7px; }
.artifact-trace-node::after { content: ''; width: 6px; height: 6px; background: var(--muted); border-radius: 50%; }
.artifact-trace li:nth-child(3) .artifact-trace-node { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-ink); }
.artifact-trace li:nth-child(3) .artifact-trace-node::after { display: none; }
.artifact-trace-node .icon { width: 16px; height: 16px; }
.artifact-trace strong { font-size: 16px; }
.artifact-trace li > span:last-child { font-size: 12px; color: var(--sub); padding-inline-end: 12px; }
.institutional-site .site-closing { position: relative; isolation: isolate; overflow: hidden; }
.artifact-closing-rings { position: absolute; z-index: -1; pointer-events: none; width: 620px; height: 360px; inset-inline-end: -210px; top: 50%; transform: translateY(-50%); opacity: .24; }
.artifact-closing-rings i { position: absolute; inset: 0; border: 1px solid var(--muted); border-radius: 50%; transform: rotate(-20deg); }
.artifact-closing-rings i:nth-child(2) { inset: 35px -75px; transform: rotate(18deg); }
.artifact-closing-rings i:nth-child(3) { inset: -60px 90px; transform: rotate(32deg); border-color: var(--accent); }
.artifact-closing-rings > span { position: absolute; inset-inline-start: 100px; top: 40px; width: 9px; height: 9px; border: 1px solid var(--accent); background: var(--surface); border-radius: 50%; }
.site-artifact .artifact-loop { animation-play-state: paused; }
.site-artifact.is-in-view .artifact-loop { animation-play-state: running; }
.site-showcase[data-motion="paused"] .artifact-loop { animation-play-state: paused; }
@keyframes artifact-orbit { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes artifact-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes artifact-panel-in { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes artifact-trace-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .institutional-site .lp-card:has(a) { transition: transform .2s ease, border-color .2s ease; }
  .institutional-site .lp-card:has(a):hover { transform: translateY(-3px); border-color: var(--line2); }
  .institutional-site .site-text-link .icon { transition: transform .2s ease; }
  .institutional-site .site-text-link:hover .icon { transform: translateX(3px); }
  [dir="rtl"] .institutional-site .site-text-link:hover .icon { transform: translateX(-3px); }
}
@media (max-width:1100px) {
  .artifact-preview { padding: 22px; }
  .artifact-visual { padding: 12px 16px 28px; }
  .artifact-floating-card { gap: 8px; padding: 11px; }
  .artifact-floating-card strong { font-size: 11px; }
  .artifact-tabs { gap: 14px; }
  .artifact-tabs button { font-size: 12px; }
}
@media (max-width:720px) {
  .artifact-workspace { grid-template-columns: 1fr; }
  .artifact-visual { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .artifact-scene { max-width: 390px; }
  .artifact-floating-card { inset-block-start: 10%; inset-inline-end: 0; }
  .artifact-floating-card.secondary { inset-block-start: auto; inset-block-end: 10%; }
  .artifact-floating-card small { font-size: 7px; }
  .artifact-floating-card strong { font-size: 10px; }
  .artifact-floating-card > .icon { width: 16px; height: 16px; }
  .artifact-visual-caption > span { font-size: 8px; }
  .artifact-visual-caption p { font-size: 10px; }
  .artifact-window-bar { padding: 12px 14px; gap: 9px; font-size: 8px; letter-spacing: .05em; }
  .artifact-motion-button { font-size: 10px; gap: 4px; }
  .artifact-preview { padding: 16px 18px 24px; }
  .artifact-tabs { gap: 0; justify-content: space-between; }
  .artifact-tabs button { font-size: 11px; }
  .artifact-panel { min-height: 440px; padding-top: 24px; }
  .artifact-record-fields > div { gap: 10px; }
  .artifact-record-fields dd { font-size: 12px; }
  .artifact-window-foot { padding: 13px 14px; font-size: 10px; }
  .artifact-trace { padding: 20px; }
  .artifact-trace-heading { flex-wrap: wrap; gap: 0; }
  .artifact-trace ol { grid-template-columns: 1fr; gap: 0; }
  .artifact-trace li { display: grid; grid-template-columns: 32px 1fr; gap: 7px 16px; padding-bottom: 26px; }
  .artifact-trace-node { grid-row: span 2; margin: 0; }
  .artifact-trace li:not(:last-child)::before { top: 32px; bottom: 0; inset-inline-start: 15px; width: 1px; height: auto; transform-origin: center top; }
  .artifact-trace.was-visible li:not(:last-child)::before { animation: none; }
  .artifact-trace li > span:last-child { grid-column: 2; padding: 0; }
  .artifact-trace li:last-child { padding-bottom: 0; }
  .artifact-closing-rings { opacity: .1; inset-inline-end: -450px; }
}
@media (prefers-reduced-motion:reduce) {
  .institutional-site .artifact-loop, .institutional-site .artifact-panel, .institutional-site .artifact-trace li::before { animation: none !important; }
  .artifact-motion-button { display: none; }
}
