/* =========================================================
   Work — stacked featured projects, grid, detail dialog
   ========================================================= */

/* Preview scaling: every preview is authored at 960×600 */
.pv-frame { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.pv-scale { position: absolute; top: 0; left: 0; width: 960px; height: 600px; transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--s, 1)); transform-origin: 0 0; }

/* ---------- Stacked featured cards (folder stack) ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 8px; }
.stack-card { position: sticky; top: calc(84px + var(--i) * 16px); transform-origin: 50% 0; will-change: transform; transition: transform .15s linear, filter .15s linear;
  background: #262e36; color: #e7ebf1; border-radius: 28px; padding: 24px 24px 24px; border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 -10px 30px -12px rgba(10,14,22,.35), 0 30px 80px -40px rgba(10,13,18,.6);
  background-image: radial-gradient(ellipse 55% 80% at 100% 0%, rgba(41,98,255,.30), transparent 60%), radial-gradient(ellipse 40% 60% at 0% 100%, rgba(41,98,255,.10), transparent 60%); }
.sc-head { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 22px; padding: 4px 6px 20px; }
.sc-n { font-size: 54px; font-weight: 600; letter-spacing: -.06em; line-height: .9; color: #2e6bff; }
.sc-t span { font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8d97a6; }
.sc-t h3 { color: #fff; font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-top: 4px; white-space: nowrap; text-transform: uppercase; }
.sc-head p { color: #a3adbb; font-size: 15px; line-height: 1.5; max-width: 46ch; }
.sc-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.sc-btn:hover { background: #fff; color: var(--text); border-color: #fff; }
.sc-window { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, #13241f 0%, #0d1a20 100%);
  background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(41,98,255,.22), transparent 70%), linear-gradient(180deg, #2e3742, #222930); }
.sc-chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sc-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3a414c; }
.sc-chrome i:first-child { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.7); }
.sc-chrome span { margin-left: 12px; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8d97a6; }
.sc-chrome em { font-style: normal; margin: 0 6px; opacity: .6; }
.sc-chrome b { color: #e7ecf4; font-weight: 600; }
.sc-stage { height: clamp(260px, calc(100vh - 420px), 440px); display: flex; align-items: center; justify-content: center; gap: 24px; padding: 22px 28px; }
.sc-main { height: 100%; aspect-ratio: 16 / 10; max-width: 72%; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.7); flex-shrink: 1; }
.sc-main .pv-frame { height: 100%; width: 100%; aspect-ratio: auto; }
.sc-mini { position: relative; height: 56%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 20px 40px -14px rgba(0,0,0,.7); transition: transform .4s var(--ease); }
.sc-mini .pv-frame { height: 100%; aspect-ratio: auto; }
.sc-mini::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,14,22,.55)); }
.sc-mini:hover { transform: translateY(-3px) scale(1.02); }
.sc-expand { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(10,14,22,.85); color: #fff; font: 600 12px var(--font); letter-spacing: .1em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); }
.sc-expand svg { width: 14px; height: 14px; }

/* ---------- All projects ---------- */
.all-work { margin-top: 88px; }
.aw-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.aw-head h3 { font-size: 26px; letter-spacing: -.03em; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--text-2); transition: all .2s; }
.filters button span { font: 11.5px var(--mono); color: var(--text-3); }
.filters button:hover { border-color: var(--line-2); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.filters button[aria-pressed="true"] span { color: #9aa4b2; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wcard { position: relative; text-align: left; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; min-height: 500px; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.wcard[hidden] { display: none; }
.wcard { --glow-y: 35%; --dots-mask: radial-gradient(ellipse 70% 50% at 50% 35%, #000, transparent 75%); }
.wcard:hover { transform: translateY(-6px); }
.wc-top { display: flex; align-items: center; gap: 10px; padding: 22px 22px 0; }
.wc-n { font: 600 13px var(--mono); opacity: .55; }
.wc-type { font: 600 10.5px var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 6px 11px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); }
.tone-light .wc-type { border-color: var(--line-2); color: var(--text-2); }
.wc-go { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); transition: background .3s, color .3s, transform .4s var(--ease); }
.tone-light .wc-go { background: var(--text); color: #fff; }
.wcard:hover .wc-go { background: #fff; color: var(--text); transform: rotate(45deg); }
.wcard.tone-light:hover .wc-go { background: var(--brand); color: #fff; }
.wc-thumb { padding: 26px 26px 8px; perspective: 1100px; }
.wc-tilt { border-radius: 12px; overflow: hidden; transform: rotateX(10deg) rotateZ(-2deg) translateY(4px); transform-origin: 50% 100%; transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 24px 40px -18px rgba(0,0,0,.6); }
.tone-light .wc-tilt { box-shadow: 0 0 0 1px var(--line-2), 0 24px 40px -20px rgba(13,17,23,.45); }
.wcard:hover .wc-tilt { transform: none; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 34px 60px -20px rgba(0,0,0,.65); }
.wc-body { margin-top: auto; padding: 14px 24px 24px; }
.wc-body h4 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.wc-body p { font-size: 14.5px; line-height: 1.5; margin-top: 6px; color: #a7b0bf; }
.tone-blue .wc-body p { color: rgba(255,255,255,.8); }
.tone-light .wc-body p { color: var(--text-2); }
.wc-stat { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.tone-light .wc-stat { border-color: var(--line-2); }
.wc-stat b { font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.tone-dark .wc-stat b { background: linear-gradient(90deg, #6f9bff, #38cfff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tone-light .wc-stat b { color: var(--brand); }
.wc-stat span { font-size: 13px; line-height: 1.35; opacity: .75; }

/* ---------- Detail dialog ---------- */
html.modal-open { overflow: hidden; }
.pd { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; display: none; }
.pd[open] { display: grid; place-items: center; }
.pd::backdrop { background: rgba(10,13,18,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease both; }
.pd.closing::backdrop { animation: fadeOut .22s ease both; }
.pd-inner { width: min(1040px, calc(100% - 32px)); height: min(92vh, 1000px); background: var(--bg); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 120px -20px rgba(0,0,0,.5); animation: pdIn .4s var(--ease) both; }
.pd.closing .pd-inner { animation: pdOut .22s ease both; }
@keyframes pdIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes pdOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.pd-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 14px 26px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pd-crumb { font-size: 13.5px; color: var(--text-2); }
.pd-crumb i { font-style: normal; color: var(--text-3); margin: 0 6px; }
.pd-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); transition: background .2s; }
.pd-close:hover { background: var(--surface-2); }
.pd-scroll { overflow-y: auto; padding: 40px clamp(20px, 4vw, 48px) 40px; overscroll-behavior: contain; }
.pd-n { font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.pd-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 10px; }
.pd-hook { font-size: 18px; color: var(--text-2); max-width: 52ch; }
.pd-window { margin: 32px 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.pd-meta { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pd-meta > div { padding: 16px 20px; }
.pd-meta > div + div { border-left: 1px solid var(--line); }
.pd-meta small { display: block; font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.pd-meta b { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.pd-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-stack span { font: 12px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.pd-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin: 40px 0 8px; align-items: start; }
.pd-desc { font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.pd-stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pd-stats div { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pd-stats b { font-size: 30px; font-weight: 600; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.pd-stats span { font-size: 14px; color: var(--text-2); line-height: 1.4; }
.pd-h3 { font-size: 20px; margin: 40px 0 16px; }
.pd-hl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pd-hl li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.pd-hl span { font: 500 12px var(--mono); color: var(--brand); }
.pd-hl b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 8px 0 4px; }
.pd-hl p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.pd-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 32px; padding: 22px 24px; border-radius: 14px; background: var(--ink); color: #fff; }
.pd-cta b { font-size: 17px; font-weight: 600; }
.pd-cta p { font-size: 14px; color: #9aa4b2; }

/* =========================================================
   Preview UIs (authored at 960×600)
   ========================================================= */
.pv { width: 960px; height: 600px; background: #fff; color: var(--text); font-family: var(--font); font-size: 14px; display: flex; flex-direction: column; overflow: hidden; }
.pv-bar { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.pv-dots { display: flex; gap: 6px; } .pv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e5ea; }
.pv-title { font-size: 15px; font-weight: 600; }
.pv-right { margin-left: auto; }
.pv-live, .pv-ok { font-style: normal; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; }
.pv-live { color: var(--brand); background: var(--brand-50); }
.pv-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping 2s infinite; }
.pv-ok { color: var(--green); background: #effaf2; }

/* intake */
.pvi-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 22px; background: var(--surface-2); }
.pvi-doc { display: grid; place-items: center; }
.pvi-paper { width: 100%; background: #fffdf8; border: 1px solid #ece6d8; border-radius: 10px; padding: 22px 24px 24px; box-shadow: 0 16px 40px -20px rgba(0,0,0,.3); transform: rotate(-1.2deg); }
.pvi-ph { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; color: #8c826d; padding-bottom: 12px; border-bottom: 2px solid #e7dfcd; margin-bottom: 8px; }
.pvi-ph b { color: #4f4838; }
.pvi-row { display: flex; align-items: center; gap: 14px; padding: 7px 0; border-bottom: 1px dashed #e6dfcf; }
.pvi-row span { font: 11.5px var(--mono); color: #9a907c; width: 110px; }
.pvi-hw { font-style: normal; font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 19px; color: #253a6e; padding: 0 6px; border-radius: 5px; }
.pvi-hw.on { box-shadow: 0 0 0 1.5px rgba(29,95,214,.55); background: rgba(29,95,214,.07); }
.pvi-hw.warn { box-shadow: 0 0 0 1.5px rgba(217,119,6,.6); background: rgba(217,119,6,.08); }
.pvi-lines { display: grid; gap: 9px; margin-top: 18px; } .pvi-lines i { height: 6px; border-radius: 3px; background: #efe9dc; } .pvi-lines i:nth-child(2n) { width: 70%; }
.pvi-side { display: flex; flex-direction: column; gap: 14px; }
.pvi-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pvi-h { display: flex; justify-content: space-between; margin-bottom: 8px; } .pvi-h b { font-size: 14px; } .pvi-h span { font-size: 12.5px; color: var(--text-3); }
.pvi-f { display: grid; grid-template-columns: 120px 1fr 90px 40px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pvi-f span { font: 12px var(--mono); color: var(--text-3); }
.pvi-f b { font-weight: 500; }
.pvi-f i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--green) var(--w), var(--surface-2) var(--w)); }
.pvi-f em { font: normal 12px var(--mono); color: var(--text-2); text-align: right; }
.pvi-f.low i { background: linear-gradient(90deg, var(--amber) var(--w), var(--surface-2) var(--w)); } .pvi-f.low em { color: var(--amber); }
.pvi-c { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--text-2); }
.pvi-c::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--green); }
.pvi-c.warn::before { content: "!"; background: var(--amber); }
.pvi-q { display: grid; grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: 10px; margin-top: auto; padding: 14px 16px; border-radius: 12px; background: var(--text); color: #c7cfda; font-size: 13px; }
.pvi-q b { color: #fff; font-size: 22px; font-weight: 600; } .pvi-q2 { justify-self: end; }

/* report */
.pvr-tool { display: flex; gap: 4px; padding: 10px 22px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.pvr-tool span { font-size: 13px; padding: 5px 12px; border-radius: 7px; color: var(--text-2); }
.pvr-tool .on { background: #fff; color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.pvr-body { flex: 1; display: grid; grid-template-columns: 1fr 270px; min-height: 0; }
.pvr-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pvr-table th { text-align: left; font: 500 11.5px var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.pvr-table td { padding: 9.5px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid #f1f3f6; }
.pvr-table td:first-child { font-weight: 500; }
.pvr-table .pos { color: var(--green); } .pvr-table .neg { color: #d14343; }
.pvr-table .ck { color: var(--green); text-align: center; width: 40px; }
.pvr-spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; }
.pvr-side { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.pvr-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pvr-card small { font-size: 12px; color: var(--text-3); }
.pvr-card b { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }
.pvr-prog { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 10px; overflow: hidden; } .pvr-prog i { display: block; height: 100%; background: var(--brand); }
.pvr-steps { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.pvr-steps li { display: flex; align-items: center; gap: 8px; color: var(--text-3); padding: 3px 0; }
.pvr-steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; }
.pvr-steps .done { color: var(--text-2); } .pvr-steps .done::before { background: var(--green); border-color: var(--green); }
.pvr-steps .run { color: var(--text); font-weight: 500; } .pvr-steps .run::before { border-color: var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; }

/* leads */
.pvl-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.pvl-kpis div { padding: 16px 22px; } .pvl-kpis div + div { border-left: 1px solid var(--line); }
.pvl-kpis small { font-size: 12.5px; color: var(--text-3); } .pvl-kpis b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.pvl-body { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; }
.pvl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; align-self: start; }
.pvl-table th { text-align: left; font: 500 11.5px var(--mono); text-transform: uppercase; color: var(--text-3); padding: 10px 22px; border-bottom: 1px solid var(--line); }
.pvl-table td { padding: 11px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pvl-table td b { display: block; font-weight: 500; } .pvl-table td small { font-size: 12px; color: var(--text-3); }
.pvl-score { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--surface-2); margin-right: 8px; vertical-align: middle; overflow: hidden; } .pvl-score i { display: block; height: 100%; background: var(--brand); }
.pvl-st { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.st-replied { background: #effaf2; color: var(--green); } .st-opened { background: var(--brand-50); color: var(--brand); } .st-sent { background: #eef0fd; color: #4547c4; } .st-drafted { background: #fdf3e6; color: #a35a06; }
.pvl-draft { border-left: 1px solid var(--line); padding: 18px 22px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.pvl-dh { display: flex; justify-content: space-between; align-items: center; } .pvl-dh b { font-size: 14px; } .pvl-dh span { font-size: 12px; color: var(--amber); font-weight: 500; }
.pvl-draft p { font-size: 14px; line-height: 1.6; color: var(--text-2); background: #fff; padding: 0; }
.pvl-draft p:first-of-type { padding: 14px 16px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; margin-bottom: -12px; }
.pvl-draft p:nth-of-type(2) { padding: 8px 16px 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.pvl-draft mark { background: rgba(29,95,214,.12); color: var(--text); border-radius: 3px; padding: 0 2px; }
.pvl-src { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .pvl-src small { font-size: 12px; color: var(--text-3); } .pvl-src span { font: 11.5px var(--mono); color: var(--text-2); padding: 2px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.pvl-btns { display: flex; gap: 8px; margin-top: auto; } .pvl-btns span { font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; } .pvl-btns .pri { background: var(--brand); color: #fff; border-color: var(--brand); }

/* booking */
.pvb-body { flex: 1; display: grid; grid-template-columns: 1fr 260px; min-height: 0; }
.pvb-cal { display: grid; grid-template-columns: 58px repeat(7, 1fr); grid-auto-rows: 1fr; gap: 6px; padding: 18px 22px; }
.pvb-d { font: 500 12px var(--mono); color: var(--text-3); text-align: center; align-self: end; padding-bottom: 2px; }
.pvb-h { font: 12px var(--mono); color: var(--text-3); align-self: center; }
.pvb-c { border-radius: 8px; background: var(--surface-2); font-size: 11.5px; font-weight: 500; padding: 6px 8px; color: #fff; }
.pvb-c.c1 { background: #2456d6; } .pvb-c.c2 { background: #5b84e8; } .pvb-c.c3 { background: #26313d; }
.pvb-side { border-left: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.pvb-k { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; }
.pvb-k small { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); } .pvb-k b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; } .pvb-k em { font-style: normal; font-size: 12.5px; color: var(--green); align-self: end; font-weight: 500; }
.pvb-chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.pvb-chart small { font-size: 12px; color: var(--text-3); } .pvb-chart div { flex: 1; display: flex; align-items: flex-end; gap: 6px; margin-top: 8px; } .pvb-chart i { flex: 1; background: #d3ddef; border-radius: 4px 4px 0 0; } .pvb-chart i:nth-child(4) { background: var(--brand); }

/* consolidate */
.pvc-body { flex: 1; display: grid; grid-template-columns: 250px 90px 1fr; gap: 0; padding: 22px; background: var(--surface-2); min-height: 0; }
.pvc-src { display: grid; gap: 10px; align-content: center; }
.pvc-p { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.pvc-p b { font-size: 14px; } .pvc-p small { font: 11.5px var(--mono); color: var(--text-3); grid-row: 2; }
.pvc-pr { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; } .pvc-pr i { display: block; height: 100%; background: var(--green); }
.pvc-p:last-child .pvc-pr i { background: var(--brand); }
.pvc-p em { font-style: normal; font-size: 12px; color: var(--green); grid-column: 2; grid-row: 1; font-weight: 500; } .pvc-p:last-child em { color: var(--brand); }
.pvc-mid { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; position: relative; }
.pvc-mid::before { content: ""; position: absolute; top: 15%; bottom: 15%; left: 50%; border-left: 1.5px dashed var(--line-2); }
.pvc-mid span { position: relative; font: 500 11px var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--slate); color: #fff; }
.pvc-out { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; align-self: center; }
.pvc-oh { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); } .pvc-oh b { font: 500 13px var(--mono); } .pvc-oh small { font-size: 12px; color: var(--green); font-weight: 500; }
.pvc-out table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pvc-out th { text-align: left; font: 500 11px var(--mono); color: var(--text-3); text-transform: uppercase; padding: 8px 16px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.pvc-out td { padding: 8px 16px; border-bottom: 1px solid var(--line); }
.pvc-out tr:last-child td { border-bottom: 0; }

/* client report */
.pvk-body { flex: 1; padding: 24px 60px 0; background: var(--surface-2); min-height: 0; }
.pvk-page { height: 100%; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 28px 34px; box-shadow: 0 -10px 40px -24px rgba(0,0,0,.25); }
.pvk-title small { font: 500 12px var(--mono); text-transform: uppercase; color: var(--brand); letter-spacing: .05em; } .pvk-title b { display: block; font-size: 24px; letter-spacing: -.03em; margin-top: 4px; }
.pvk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 14px; }
.pvk-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; }
.pvk-kpis small { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); } .pvk-kpis b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; } .pvk-kpis em { font-style: normal; font-size: 12.5px; color: var(--green); align-self: end; font-weight: 500; }
.pvk-chart { width: 100%; height: 120px; display: block; }
.pvk-text { margin-top: 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; } .pvk-text b { color: var(--text); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sc-head { grid-template-columns: auto 1fr auto; }
  .sc-head p { grid-column: 1 / -1; grid-row: 2; }
  .sc-t h3 { white-space: normal; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .wcard { min-height: 460px; }
}
@media (max-width: 760px) {
  .stack-card { position: relative; top: 0; padding: 18px; border-radius: 20px; }
  .sc-head { grid-template-columns: auto 1fr; gap: 14px; }
  .sc-n { font-size: 38px; }
  .sc-t h3 { font-size: 21px; white-space: normal; }
  .sc-btn { grid-column: 1 / -1; justify-content: center; }
  .work-grid { grid-template-columns: 1fr; }
  .pd-inner { width: 100%; height: 100%; border-radius: 0; }
  .pd-meta { grid-template-columns: 1fr; }
  .pd-meta > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pd-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-hl { grid-template-columns: 1fr; }
  .pd-cta { flex-direction: column; align-items: flex-start; }
  .pd-stats div { grid-template-columns: 90px 1fr; }
}

/* ---------- Previous / next project ---------- */
.pd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.pn { position: relative; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; padding: 12px; text-align: left; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.pn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 40%, rgba(29,95,214,.06)); opacity: 0; transition: opacity .3s; }
.pn:hover { border-color: #c8d6f2; box-shadow: var(--shadow); transform: translateY(-2px); }
.pn:hover::after { opacity: 1; }
.pn-thumb { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--surface-2); transition: transform .5s var(--ease); }
.pn:hover .pn-thumb { transform: scale(1.04); }
.pn-body { display: grid; gap: 4px; min-width: 0; }
.pn-body small { display: flex; align-items: center; gap: 6px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.pn-body small .i { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.pn-next:hover small .i { transform: translateX(3px); }
.pn-prev:hover small .i { transform: scaleX(-1) translateX(3px); }
.pn-body b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.pn-body em { font-style: normal; font-size: 13px; color: var(--text-3); }
.pn-next { grid-template-columns: 1fr 150px; text-align: right; }
.pn-next .pn-thumb { order: 2; }
.pn-next .pn-body small { justify-content: flex-end; flex-direction: row-reverse; }

@media (max-width: 1080px) {
  .sc-mini { display: none; }
  .sc-main { max-width: 100%; }
}
@media (max-width: 760px) {
  .sc-stage { height: auto; padding: 14px; }
  .sc-main { height: auto; width: 100%; aspect-ratio: auto; }
  .sc-main .pv-frame { aspect-ratio: 16 / 10; height: auto; }
  .pd-nav { grid-template-columns: 1fr; }
  .pn, .pn-next { grid-template-columns: 110px 1fr; text-align: left; }
  .pn-next .pn-thumb { order: 0; }
  .pn-next .pn-body small { justify-content: flex-start; flex-direction: row; }
}
