/* =====================================================================
   Showcase: results timeline, featured project, live link, screenshots.
   Loaded after career.css; relies on the tokens in app.css.
   ===================================================================== */

/* ---------- Results, role by role ---------- */
.proof { display: grid; gap: 2.25rem; }
.proof-heads { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; }
.proof-heads li { display: grid; gap: .1rem; max-width: 16rem; align-content: start; }
.proof-heads strong { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--accent); }
.proof-head-label { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.proof-head-detail { color: var(--muted); font-size: .9rem; }

.proof-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
/* the connecting line runs through the dots */
.proof-line::before { content: ""; position: absolute; left: 0; right: 0; top: .5rem; height: 2px; background: linear-gradient(90deg, var(--border), var(--accent)); opacity: .8; }
.proof-step { position: relative; display: flex; flex-direction: column; gap: .15rem; padding-top: 1.6rem; }
.proof-dot { position: absolute; top: 0; left: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--dc, var(--accent)); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--dc, var(--accent)); }
.proof-step.is-now .proof-dot { animation: pulse 2s ease-out infinite; }
.proof-year { margin: 0; }
.proof-org { font-weight: 650; line-height: 1.25; }
.proof-role { color: var(--muted); font-size: .85rem; margin-bottom: .55rem; }
.proof-result { margin-top: auto; display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--border); border-top: 3px solid var(--dc, var(--accent)); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.4; transition: transform .15s ease, border-color .15s ease; }
.proof-result:hover { border-color: var(--dc, var(--accent)); transform: translateY(-2px); }
.proof-go { color: var(--dc, var(--accent)); font-weight: 700; }
@media (max-width: 1000px) {
  .proof-line { grid-template-columns: 1fr; gap: 0; padding-left: 1.6rem; }
  .proof-line::before { left: .45rem; right: auto; top: .5rem; bottom: .5rem; width: 2px; height: auto; background: linear-gradient(var(--border), var(--accent)); }
  .proof-step { padding: 0 0 1.4rem 0; }
  .proof-dot { left: -1.6rem; top: .2rem; }
}

/* ---------- Featured project ---------- */
.feature { display: grid; gap: 1.75rem; padding: 1.75rem; margin-bottom: 1rem; border: 1px solid var(--accent); border-radius: calc(var(--radius) + 6px); background: radial-gradient(70% 120% at 0% 0%, var(--accent-soft), transparent 60%), var(--surface); }
@media (min-width: 960px) { .feature { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.feature-badge { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); margin-bottom: .6rem; }
.feature-title { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 .15rem; }
.feature-lead { font-size: 1.1rem; font-weight: 600; margin: .4rem 0 .7rem; }
.feature-problem { color: var(--muted); }
.feature-facts, .case-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-facts li, .case-facts li { display: grid; gap: .1rem; padding: .85rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.feature-facts strong, .case-facts strong { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--accent); }
.feature-fact-label { font-weight: 650; font-size: .9rem; }
.feature-fact-detail { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.feature-shot { margin-bottom: .9rem; }
.feature-side .pipeline { margin-top: 1.25rem; flex-direction: column; align-items: flex-start; gap: 1.05rem; }
.feature-side .pipeline li:not(:last-child)::after { content: "\2193"; right: auto; left: 1rem; top: auto; bottom: -1.05rem; transform: none; line-height: 1; }
.case-facts { margin: 1.5rem 0 0; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

/* ---------- Live link pill on cards ---------- */
.project-card { position: relative; }
.live-pill { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: var(--bg); }
.card-cover { display: block; width: calc(100% + 2.5rem); max-width: none; margin: -1.25rem -1.25rem 1rem; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); }

/* ---------- Screenshots + lightbox ---------- */
.shots { margin-top: 2.5rem; }
.shot-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.shot-grid figure { margin: 0; }
.shot-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.shot-btn:hover { border-color: var(--accent); }
.shot-btn img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-grid figcaption { margin-top: .4rem; color: var(--muted); font-size: .88rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 80rem); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgb(2 6 12 / .82); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 12px; background: var(--surface); }
.lightbox figcaption { color: #e8edf5; text-align: center; margin-top: .6rem; }
.lightbox-close { position: absolute; top: -2.4rem; right: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* ---------- Reduced motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  .proof-step.is-now .proof-dot { animation: none; }
  .proof-result { transition: none; }
}
@media print { .feature, .proof-line::before { box-shadow: none; } .live-pill { display: none; } }
