/* SIP Digital — "Your project" page (client area). Uses the tokens and components from styles.css.
   Every class and keyframe in this file starts with proj-. The shared short names (.show, .chip, .in,
   .on, .btn, .reel) are taken, and a collision already broke this site once.
   State is set with the [hidden] attribute and data-state, never with a short helper class. */

/* ---------- greeting ---------- */
.proj-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(8px, 2vw, 20px); }
.proj-hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -240px; background: radial-gradient(circle, rgba(255, 90, 31, .22), transparent 65%); pointer-events: none; }
.proj-hero .wrap { position: relative; z-index: 1; }
.proj-hero h1 { font-size: clamp(40px, 6.4vw, 84px); margin: 18px 0 20px; overflow-wrap: anywhere; }
.proj-hero h1 .serif { display: block; color: var(--sip); }
.proj-sample { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: fit-content; max-width: 100%; margin: 18px 0 0; padding: 10px 16px; border-radius: 14px; background: rgba(200, 245, 60, .1); border: 1px solid var(--lime); font-size: 15px; color: var(--cream); }
.proj-sample b { font: 700 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.proj-meta { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--muted-on-dark); }
.proj-meta b { color: var(--cream); font-weight: 700; overflow-wrap: anywhere; }

/* ---------- sections ---------- */
.proj-section { padding: clamp(24px, 4vw, 44px) 0; }
.proj-h2 { font-size: clamp(30px, 4.2vw, 48px); margin: 0 0 22px; }
.proj-fine { color: var(--muted-on-dark); font-size: 14px; margin: 16px 0 0; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-self: stretch; }

/* ---------- status tracker ---------- */
.proj-now { margin: -8px 0 28px; max-width: 60ch; color: var(--muted-on-dark); font-size: clamp(17px, 1.5vw, 20px); }
.proj-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proj-track li { position: relative; padding-right: 18px; }
.proj-track li::before { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: rgba(245, 239, 228, .16); }
.proj-track li:last-child::before { content: none; }
.proj-track li[data-state="done"]::before { background: var(--lime); }
.proj-track__dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 2px solid rgba(245, 239, 228, .2); color: var(--muted-on-dark); font: 700 14px/1 var(--font-mono); }
.proj-track li[data-state="done"] .proj-track__dot { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.proj-track li[data-state="current"] .proj-track__dot { background: var(--sip); border-color: var(--sip); color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 90, 31, .2); }
.proj-track__text { display: grid; gap: 2px; margin-top: 14px; min-width: 0; }
.proj-track__text strong { font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.proj-track__text > span { color: var(--muted-on-dark); font-size: 14px; line-height: 1.4; }
.proj-track li[data-state="todo"] strong { color: var(--muted-on-dark); }

.proj-closed { display: grid; gap: 8px; justify-items: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line-dark); background: var(--ink-2); }
.proj-closed strong { font-size: 24px; letter-spacing: -0.02em; }
.proj-closed p { margin: 0 0 12px; max-width: 56ch; color: var(--muted-on-dark); }

/* ---------- what you told us ---------- */
.proj-summary { display: grid; gap: 1px; margin: 0; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.proj-summary > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 20px; background: var(--ink-2); }
.proj-summary dt { padding-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.proj-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }

/* ---------- package ---------- */
.proj-choose { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.proj-pkg { display: grid; gap: 14px; justify-items: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--ink-2); border: 1.5px solid var(--line-dark); }
.proj-pkg--pick { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 245, 60, .22); }
.proj-pkg--done { border-color: var(--lime); background: linear-gradient(160deg, rgba(200, 245, 60, .1), var(--ink-2) 55%); }
.proj-badge { font: 700 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.proj-badge--done::before { content: "✓ "; }
.proj-pkg__name { margin: 0; font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: .95; }
.proj-pkg__why { margin: 0; max-width: 52ch; }
.proj-pkg__price { margin: 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.proj-pkg__note { margin: 0; max-width: 56ch; color: var(--muted-on-dark); font-size: 15px; }
.proj-pkg .proj-actions { margin-top: 6px; }

.proj-others h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -0.02em; }
.proj-others__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.proj-other { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--ink-2); border: 1.5px solid var(--line-dark); }
.proj-other__text { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.proj-other__text strong { font-size: 22px; letter-spacing: -0.02em; }
.proj-other__text span { color: var(--muted-on-dark); font-size: 15px; }
.proj-other .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.proj-keep { margin-top: 12px; min-height: 46px; padding: 0 20px; font-size: 15px; }
.proj-alert { margin: 16px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--error-bg); border: 1px solid rgba(255, 107, 107, .5); color: #f3c6c6; font-weight: 600; }

/* ---------- discovery call ---------- */
.proj-call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line-dark); background: linear-gradient(140deg, rgba(255, 90, 31, .18), rgba(139, 123, 255, .12)); }
.proj-call > div { flex: 1 1 280px; min-width: 0; }
.proj-call h2 { margin: 0 0 4px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.proj-call p { margin: 0; max-width: 52ch; color: var(--muted-on-dark); }

/* ---------- loading, invalid link, error ---------- */
.proj-state { padding: clamp(48px, 9vw, 120px) 0; }
.proj-state h1 { font-size: clamp(38px, 5.6vw, 72px); margin: 18px 0 16px; }
.proj-state h1 .serif { color: var(--sip); }
.proj-state p { margin: 0 0 26px; max-width: 54ch; color: var(--muted-on-dark); font-size: clamp(17px, 1.5vw, 20px); }
.proj-state .proj-state__row { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; color: var(--cream); font-weight: 700; }
.proj-spinner { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(245, 239, 228, .25); border-top-color: var(--lime); animation: proj-spin .8s linear infinite; }
@keyframes proj-spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .proj-choose { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .proj-track { grid-template-columns: 1fr; }
  .proj-track li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 0 0 24px; }
  .proj-track li:last-child { padding-bottom: 0; }
  .proj-track li::before { left: 21px; right: auto; top: 44px; bottom: 0; width: 2px; height: auto; }
  .proj-track__text { margin-top: 8px; }
}
@media (max-width: 640px) {
  .proj-summary > div { grid-template-columns: 1fr; gap: 4px; }
  .proj-actions .btn, .proj-other .btn, .proj-call .btn, .proj-closed .btn, .proj-keep { width: 100%; }
}
