/* =========================================================
   Live Projects — public pages (v1.0.0)
   Colours come from the site theme tokens (--*-rgb), so the page follows
   whichever theme is active: the original dark look or Glass.
   ========================================================= */
@view-transition { navigation: auto; }

:root {
    --lp-bg: rgb(var(--s1-rgb, 7, 7, 11));
    --lp-panel: rgba(var(--s4-rgb, 13, 13, 20), .72);
    --lp-panel-2: rgba(var(--ink-rgb, 255, 255, 255), .035);
    --lp-line: rgba(var(--ink-rgb, 255, 255, 255), .09);
    --lp-line-2: rgba(var(--ink-rgb, 255, 255, 255), .16);
    --lp-text: rgb(var(--text-rgb, 247, 245, 240));
    --lp-text-2: rgb(var(--text-3-rgb, 199, 195, 204));
    --lp-muted: rgb(var(--muted-rgb, 170, 166, 177));
    --lp-dim: rgb(var(--dim-rgb, 143, 139, 151));
    --lp-gold: var(--gold-rgb, 248, 184, 78);
    --lp-cyan: var(--cyan-rgb, 56, 217, 255);
    --lp-green: var(--green-rgb, 83, 233, 164);
    --lp-purple: var(--purple-rgb, 169, 112, 255);
    --lp-pink: var(--pink-rgb, 255, 94, 188);
    --lp-blue: var(--blue-rgb, 95, 145, 255);
    --lp-planned: var(--muted-3-rgb, 157, 154, 168);
    --lp-radius: 22px;
    --lp-ease: cubic-bezier(.2, .8, .2, 1);
    --lp-font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
}
.is-ar { --lp-font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.lp-body { margin: 0; min-height: 100vh; background: var(--lp-bg); color: var(--lp-text); font: 15px/1.65 var(--lp-font); overflow-x: hidden; }
html[data-site-theme] body.lp-body { background: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.lp-shell { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- background: a blueprint floor + soft glows (hidden when a theme paints a scene) ---------- */
.lp-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
html[data-site-theme] .lp-bg { display: none; }
.lp-bg-grid {
    position: absolute; inset: -40% -20% -10%;
    overflow: hidden;
    transform: perspective(700px) rotateX(62deg) translateY(30%);
    transform-origin: 50% 100%;
    mask-image: linear-gradient(to top, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%);
}
/* the grid stays still: scrolling a full-screen masked 3D layer cost about half the frame rate on ordinary devices */
.lp-bg-grid::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    background-image: linear-gradient(rgba(var(--lp-cyan), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--lp-cyan), .07) 1px, transparent 1px);
    background-size: 56px 56px;
}
.lp-bg-glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .5; will-change: transform; } /* soft edge comes from the gradient itself; a blur filter here was re-computed every frame */
.lp-bg-glow--a { top: -30vmax; inset-inline-start: -15vmax; background: radial-gradient(circle, rgba(var(--lp-gold), .18), transparent 60%); animation: lpFloat 18s ease-in-out infinite alternate; }
.lp-bg-glow--b { top: 10vmax; inset-inline-end: -25vmax; background: radial-gradient(circle, rgba(var(--lp-cyan), .14), transparent 60%); animation: lpFloat 22s ease-in-out infinite alternate-reverse; }
.lp-bg-dust { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.4), transparent), radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.3), transparent), radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.45), transparent), radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,.35), transparent); background-size: 480px 480px; opacity: .6; }
@keyframes lpGrid { to { transform: translate3d(0, 56px, 0); } }
@keyframes lpFloat { to { transform: translate(6vmax, 4vmax) scale(1.1); } }

/* ---------- header ---------- */
.lp-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); background: linear-gradient(180deg, rgba(var(--s1-rgb, 7, 7, 11), .82), rgba(var(--s1-rgb, 7, 7, 11), .55)); border-bottom: 1px solid var(--lp-line); }
.lp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.lp-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-brand img { flex: none; }
.lp-brand b { display: block; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.lp-brand small { display: block; color: var(--lp-muted); font-size: 11px; line-height: 1.2; }
.lp-nav { display: flex; align-items: center; gap: 6px; }
.lp-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--lp-text-2); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s; white-space: nowrap; }
.lp-nav a:hover { background: var(--lp-panel-2); color: var(--lp-text); }
.lp-nav a.is-current { color: var(--lp-text); background: rgba(var(--lp-gold), .1); box-shadow: inset 0 0 0 1px rgba(var(--lp-gold), .28); }
.lp-nav .lp-lang { width: 36px; height: 36px; justify-content: center; padding: 0; border: 1px solid var(--lp-line-2); }
.lp-nav .lp-cta { background: rgb(var(--lp-gold)); color: rgb(var(--on-accent-rgb, 23, 17, 9)); }
.lp-nav .lp-cta:hover { background: rgb(var(--lp-gold)); color: rgb(var(--on-accent-rgb, 23, 17, 9)); filter: brightness(1.08); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--lp-green)); box-shadow: 0 0 0 0 rgba(var(--lp-green), .6); animation: lpPing 1.8s infinite; }
@keyframes lpPing { 70% { box-shadow: 0 0 0 8px rgba(var(--lp-green), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--lp-green), 0); } }

/* ---------- shared bits ---------- */
.lp-live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 999px; background: rgba(var(--lp-green), .12); border: 1px solid rgba(var(--lp-green), .35); color: rgb(var(--lp-green)); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; line-height: 1.4; }
.lp-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: lpBlink 1.3s ease-in-out infinite; }
@keyframes lpBlink { 50% { opacity: .25; } }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--lp-panel-2); border: 1px solid var(--lp-line); color: var(--lp-text-2); font-size: 11.5px; font-weight: 600; }
.lp-chip.is-done, .lp-chip.is-completed { color: rgb(var(--lp-green)); border-color: rgba(var(--lp-green), .3); background: rgba(var(--lp-green), .08); }
.lp-chip.is-active { color: rgb(var(--lp-cyan)); border-color: rgba(var(--lp-cyan), .3); background: rgba(var(--lp-cyan), .08); }
.lp-chip.is-paused { color: rgb(var(--lp-gold)); border-color: rgba(var(--lp-gold), .3); }
.lp-sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lp-sdot.is-done { background: rgb(var(--lp-green)); }
.lp-sdot.is-active { background: rgb(var(--lp-cyan)); box-shadow: 0 0 10px rgba(var(--lp-cyan), .8); }
.lp-sdot.is-planned { background: transparent; box-shadow: inset 0 0 0 2px rgba(var(--lp-planned), .7); }
.lp-mini-stages { display: inline-flex; gap: 3px; }
.lp-mini-stages i { width: 14px; height: 5px; border-radius: 4px; background: rgba(var(--ink-rgb, 255, 255, 255), .13); }
.lp-mini-stages i.on { background: rgb(var(--lp-green)); }
.lp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 700; border: 1px solid var(--lp-line-2); transition: transform .2s var(--lp-ease), filter .2s; }
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn--gold { background: rgb(var(--lp-gold)); color: rgb(var(--on-accent-rgb, 23, 17, 9)); border-color: transparent; box-shadow: 0 12px 30px rgba(var(--lp-gold), .25); }
.lp-empty { padding: 40px; text-align: center; color: var(--lp-muted); border: 1px dashed var(--lp-line-2); border-radius: var(--lp-radius); }

.lp-section { margin-top: 64px; }
.lp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.lp-section-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.lp-section-head h2 small { font-size: 13px; font-weight: 700; color: var(--lp-muted); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--lp-line); }
.lp-section-head p { margin: 0; max-width: 560px; color: var(--lp-muted); }

/* accents per project */
[class*="accent-"] { --acc: var(--lp-gold); }
.accent-cyan { --acc: var(--lp-cyan); } .accent-purple { --acc: var(--lp-purple); } .accent-green { --acc: var(--lp-green); } .accent-pink { --acc: var(--lp-pink); } .accent-blue { --acc: var(--lp-blue); }

/* ---------- hero ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-top: 56px; }
.lp-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--lp-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; }
.lp-hero h1 { margin: 16px 0 14px; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; background: linear-gradient(120deg, var(--lp-text) 30%, rgb(var(--lp-gold)) 75%, rgb(var(--lp-cyan))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-ar .lp-hero h1 { letter-spacing: 0; line-height: 1.25; }
.lp-hero p { margin: 0; max-width: 520px; color: var(--lp-text-2); font-size: 16.5px; }
.lp-updated { display: inline-flex; gap: 6px; margin-top: 20px; padding: 7px 14px; border-radius: 999px; background: var(--lp-panel-2); border: 1px solid var(--lp-line); color: var(--lp-muted); font-size: 12.5px; }
.lp-updated b { color: var(--lp-text); }

.lp-pipeline { position: relative; aspect-ratio: 600 / 340; }
.lp-pipe-svg { width: 100%; height: 100%; overflow: visible; }
.is-ar .lp-pipe-svg { transform: scaleX(-1); }
.lp-pipe-track { fill: none; stroke: url(#lpTrack); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; animation: lpDash 1.2s linear infinite; }
.lp-pipe-track--glow { stroke-width: 9; opacity: .35; stroke-dasharray: none; animation: none; }
@keyframes lpDash { to { stroke-dashoffset: -11; } }
.lp-pipe-dot.is-done { fill: rgb(var(--lp-green)); }
.lp-pipe-dot.is-active { fill: rgb(var(--lp-cyan)); filter: drop-shadow(0 0 6px rgb(var(--lp-cyan))); }
.lp-pipe-dot.is-planned { fill: rgba(var(--lp-planned), .8); }
.lp-pipe-station { fill: rgb(var(--s1-rgb, 7, 7, 11)); stroke-width: 3; }
.lp-pipe-station.is-planned { stroke: rgba(var(--lp-planned), .9); }
.lp-pipe-station.is-active { stroke: rgb(var(--lp-cyan)); animation: lpStation 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.lp-pipe-station.is-done { stroke: rgb(var(--lp-green)); }
@keyframes lpStation { 50% { stroke-width: 6; } }
.lp-core-bg { fill: rgba(var(--s4-rgb, 13, 13, 20), .9); stroke: rgba(var(--lp-gold), .25); stroke-width: 2; }
.lp-core-ring { fill: none; stroke: rgb(var(--lp-gold)); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(var(--lp-gold), .6)); }
.lp-pipe-core-glow { animation: lpCore 3s ease-in-out infinite; transform-origin: 530px 170px; }
@keyframes lpCore { 50% { opacity: .55; transform: scale(1.12); } }
.lp-pipe-label, .lp-pipe-core-label { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.is-ar .lp-pipe-label, .is-ar .lp-pipe-core-label { left: auto; right: var(--x); transform: translate(50%, -50%); }
.lp-pipe-label { display: grid; padding: 6px 12px; border-radius: 14px; background: rgba(var(--s4-rgb, 13, 13, 20), .82); border: 1px solid var(--lp-line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); line-height: 1.25; }
.lp-pipe-label b { font-size: 20px; }
.lp-pipe-label span { font-size: 11px; color: var(--lp-muted); font-weight: 600; }
.lp-pipe-label.is-active b { color: rgb(var(--lp-cyan)); }
.lp-pipe-label.is-done b { color: rgb(var(--lp-green)); }
.lp-pipe-core-label b { display: block; font-size: 22px; color: rgb(var(--lp-gold)); line-height: 1; }
.lp-pipe-core-label small { display: block; font-size: 9.5px; color: var(--lp-muted); margin-top: 3px; max-width: 70px; line-height: 1.2; }

/* ---------- stats ---------- */
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.lp-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: var(--lp-panel); border: 1px solid var(--lp-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lp-stat-ic { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-style: normal; font-size: 18px; font-weight: 800; }
.lp-stat-ic.is-gold { color: rgb(var(--lp-gold)); background: rgba(var(--lp-gold), .1); }
.lp-stat-ic.is-green { color: rgb(var(--lp-green)); background: rgba(var(--lp-green), .1); }
.lp-stat-ic.is-cyan { color: rgb(var(--lp-cyan)); background: rgba(var(--lp-cyan), .1); }
.lp-stat-ic.is-purple { color: rgb(var(--lp-purple)); background: rgba(var(--lp-purple), .1); }
.lp-stat b { font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-stat span { color: var(--lp-muted); font-size: 12.5px; }

/* ---------- working now ---------- */
.lp-now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.lp-now { position: relative; display: flex; align-items: center; gap: 18px; width: 100%; padding: 20px 22px; border-radius: var(--lp-radius); cursor: pointer; text-align: start; background: linear-gradient(135deg, rgba(var(--lp-green), .1), rgba(var(--acc), .06) 60%, transparent), var(--lp-panel); border: 1px solid rgba(var(--lp-green), .3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; transition: transform .3s var(--lp-ease), border-color .3s; }
.lp-now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(var(--lp-green), .09) 50%, transparent 70%); transform: translateX(-100%); animation: lpSweep 3.6s ease-in-out infinite; }
@keyframes lpSweep { 60%, 100% { transform: translateX(100%); } }
.lp-now:hover { transform: translateY(-3px); border-color: rgba(var(--lp-green), .55); }
.lp-now-pulse { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.lp-now-pulse i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(var(--lp-green)); animation: lpRipple 2.4s ease-out infinite; opacity: 0; }
.lp-now-pulse i:nth-child(2) { animation-delay: .8s; } .lp-now-pulse i:nth-child(3) { animation-delay: 1.6s; }
.lp-now-pulse::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: rgb(var(--lp-green)); box-shadow: 0 0 18px rgb(var(--lp-green)); }
@keyframes lpRipple { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
.lp-now-body { display: grid; gap: 4px; min-width: 0; flex: 1; position: relative; z-index: 1; }
.lp-now-body small { display: flex; align-items: center; gap: 8px; color: var(--lp-muted); font-size: 12px; }
.lp-now-body strong { font-size: 17px; line-height: 1.4; }
.lp-now-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--lp-muted); font-size: 12.5px; }
.lp-now-meta b { color: var(--lp-text); font-variant-numeric: tabular-nums; }
.lp-now-go { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--lp-line-2); position: relative; z-index: 1; }
.lp-now--wide strong { font-size: 20px; }

/* ---------- project cards ---------- */
.lp-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.lp-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--lp-radius); background: var(--lp-panel); border: 1px solid var(--lp-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; transform-style: preserve-3d; transition: transform .4s var(--lp-ease), border-color .3s, box-shadow .3s; }
.lp-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, rgb(var(--acc)), transparent); opacity: .8; }
.lp-card-glow { position: absolute; width: 260px; height: 260px; top: -130px; inset-inline-end: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc), .2), transparent 65%); pointer-events: none; transition: transform .6s var(--lp-ease); }
.lp-card:hover { border-color: rgba(var(--acc), .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(var(--acc), .15); }
.lp-card:hover .lp-card-glow { transform: scale(1.4); }
.lp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; position: relative; }
.lp-card-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; position: relative; }
.lp-card-text { display: grid; gap: 6px; min-width: 0; }
.lp-card-title { font-size: 19px; line-height: 1.35; }
.lp-card-client { color: rgb(var(--acc)); font-size: 12.5px; font-weight: 600; }
.lp-card-summary { color: var(--lp-muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-split { display: flex; height: 7px; border-radius: 99px; overflow: hidden; background: rgba(var(--ink-rgb, 255, 255, 255), .07); position: relative; }
.lp-split i { width: 0; transition: width 1.2s var(--lp-ease); }
.is-in .lp-split i, .lp-split.is-in i { width: var(--w); }
.lp-split .is-done { background: rgb(var(--lp-green)); }
.lp-split .is-active { background: rgb(var(--lp-cyan)); }
.lp-split .is-planned { background: rgba(var(--lp-planned), .35); }
.lp-card-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--lp-muted); font-size: 12.5px; position: relative; }
.lp-card-counts span { display: inline-flex; align-items: center; gap: 7px; }
.lp-card-now { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--lp-green), .07); border: 1px solid rgba(var(--lp-green), .2); font-size: 13px; color: var(--lp-text-2); position: relative; }
.lp-card-now b { color: var(--lp-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-pulse-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--lp-green)); animation: lpPing 1.6s infinite; }
.lp-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--lp-line); color: rgb(var(--acc)); font-weight: 700; font-size: 13.5px; position: relative; }
.lp-card-foot span { transition: transform .3s var(--lp-ease); }
.lp-card:hover .lp-card-foot span { transform: translateX(4px); }
.is-ar .lp-card:hover .lp-card-foot span { transform: translateX(-4px); }

/* progress ring */
.lp-ring { --p: 0; position: relative; flex: none; width: 84px; height: 84px; display: grid; place-items: center; }
.lp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-ring-bg { fill: none; stroke: rgba(var(--ink-rgb, 255, 255, 255), .08); stroke-width: 7; }
.lp-ring-fg { fill: none; stroke: rgb(var(--acc, var(--lp-gold))); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--lp-ease); filter: drop-shadow(0 0 6px rgba(var(--acc, var(--lp-gold)), .5)); }
.is-in .lp-ring-fg, .lp-ring.is-in .lp-ring-fg { stroke-dasharray: var(--p) 100; }
.lp-ring b { position: relative; font-size: 19px; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.1; }
.lp-ring b small { display: block; font-size: 10.5px; color: var(--lp-muted); font-weight: 600; margin-top: 4px; }
.lp-ring--xl { width: 190px; height: 190px; }
.lp-ring--xl b { font-size: 44px; }
.lp-ring--xl .lp-ring-bg, .lp-ring--xl .lp-ring-fg { stroke-width: 5.5; }

/* ---------- feed ---------- */
.lp-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.lp-feed::before { content: ""; position: absolute; top: 12px; bottom: 12px; inset-inline-start: 26px; width: 2px; background: linear-gradient(rgba(var(--lp-green), .5), transparent); }
.lp-feed button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: transparent; border: 1px solid transparent; cursor: pointer; text-align: start; transition: background .2s, border-color .2s; }
.lp-feed button:hover { background: var(--lp-panel); border-color: var(--lp-line); }
.lp-feed-ic { position: relative; z-index: 1; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--lp-green)); color: rgb(var(--s1-rgb, 7, 7, 11)); font-weight: 900; font-size: 13px; box-shadow: 0 0 0 5px var(--lp-bg); }
html[data-site-theme] .lp-feed-ic { box-shadow: 0 0 0 5px rgba(var(--lp-green), .15); }
.lp-feed-main { display: grid; min-width: 0; flex: 1; }
.lp-feed-main strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-feed-main small { color: var(--lp-muted); font-size: 12px; }
.lp-feed time { color: var(--lp-dim); font-size: 12px; white-space: nowrap; }

.lp-cta-band { margin-top: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px; border-radius: 28px; background: radial-gradient(circle at 10% 0%, rgba(var(--lp-gold), .14), transparent 50%), var(--lp-panel); border: 1px solid rgba(var(--lp-gold), .22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lp-cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); }
.lp-cta-band p { margin: 0; color: var(--lp-muted); max-width: 560px; }

/* ---------- project page ---------- */
.lp-crumbs { display: flex; align-items: center; gap: 10px; padding-top: 28px; color: var(--lp-muted); font-size: 13px; }
.lp-crumbs a { color: rgb(var(--lp-gold)); font-weight: 600; }
.lp-phero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; margin-top: 18px; padding: 34px; border-radius: 28px; background: radial-gradient(circle at 0% 0%, rgba(var(--acc), .14), transparent 50%), var(--lp-panel); border: 1px solid var(--lp-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow: hidden; }
.lp-phero::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, rgb(var(--acc)), transparent); }
.lp-phero h1 { margin: 14px 0 8px; font-size: clamp(28px, 4vw, 46px); line-height: 1.15; letter-spacing: -.02em; }
.is-ar .lp-phero h1 { letter-spacing: 0; line-height: 1.35; }
.lp-phero-client { margin: 0 0 8px; color: var(--lp-muted); }
.lp-phero-client b { color: rgb(var(--acc)); }
.lp-phero-summary { margin: 0; color: var(--lp-text-2); max-width: 640px; font-size: 15.5px; }
.lp-phero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-phero-facts span { display: grid; padding: 9px 14px; border-radius: 14px; background: var(--lp-panel-2); border: 1px solid var(--lp-line); line-height: 1.35; }
.lp-phero-facts small { color: var(--lp-muted); font-size: 11px; }
.lp-phero-facts b { font-size: 14px; }
.lp-phero-ring { display: flex; align-items: center; gap: 26px; }
.lp-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--lp-muted); font-size: 13.5px; }
.lp-legend li { display: flex; align-items: center; gap: 9px; }
.lp-legend b { color: var(--lp-text); font-size: 18px; font-variant-numeric: tabular-nums; }

/* build timeline */
.lp-road { position: relative; padding: 6px 0 4px; overflow-x: auto; scrollbar-width: thin; }
.lp-road-track { position: absolute; top: 31px; inset-inline: 22px; height: 4px; border-radius: 4px; background: rgba(var(--ink-rgb, 255, 255, 255), .08); }
.lp-road-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--lp-green)), rgb(var(--lp-cyan))); box-shadow: 0 0 14px rgba(var(--lp-cyan), .5); transition: width 2s var(--lp-ease) .2s; }
.is-ar .lp-road-fill { background: linear-gradient(270deg, rgb(var(--lp-green)), rgb(var(--lp-cyan))); }
.lp-road.is-in .lp-road-fill { width: var(--fill); }
.lp-road-list { position: relative; list-style: none; margin: 0; padding: 0 8px; display: flex; justify-content: space-between; gap: 6px; min-width: max-content; }
.lp-road-list li { flex: 1 0 112px; min-width: 0; display: flex; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--lp-ease); transition-delay: calc(var(--i) * 45ms); }
.lp-road.is-in .lp-road-list li { opacity: 1; transform: none; }
.lp-road-list button { display: grid; justify-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; background: none; cursor: pointer; }
.lp-road-node { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 15px; background: rgb(var(--s3-rgb, 10, 10, 16)); border: 2px solid rgba(var(--lp-planned), .55); color: var(--lp-muted); transition: transform .25s var(--lp-ease); }
html[data-site-theme] .lp-road-node { background: rgba(var(--s3-rgb, 10, 10, 16), .85); backdrop-filter: blur(6px); }
.lp-road-list button:hover .lp-road-node { transform: scale(1.12); }
.lp-road-list .is-done .lp-road-node { background: rgb(var(--lp-green)); border-color: rgb(var(--lp-green)); color: rgb(var(--s1-rgb, 7, 7, 11)); }
.lp-road-list .is-active .lp-road-node { border-color: rgb(var(--lp-cyan)); color: rgb(var(--lp-cyan)); box-shadow: 0 0 0 5px rgba(var(--lp-cyan), .12); }
.lp-road-list .is-working .lp-road-node { animation: lpWorkNode 1.6s ease-in-out infinite; }
@keyframes lpWorkNode { 50% { box-shadow: 0 0 0 10px rgba(var(--lp-cyan), 0), 0 0 22px rgba(var(--lp-cyan), .6); } }
.lp-road-label { max-width: 108px; font-size: 11.5px; color: var(--lp-muted); line-height: 1.35; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-road-list .is-active .lp-road-label, .lp-road-list .is-working .lp-road-label { color: var(--lp-text); }

/* board */
.lp-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--lp-panel); border: 1px solid var(--lp-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lp-filters button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 0; background: transparent; color: var(--lp-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.lp-filters button i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(var(--ink-rgb, 255, 255, 255), .07); }
.lp-filters button.is-on { background: rgba(var(--lp-gold), .14); color: var(--lp-text); }
.lp-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.lp-board.is-filtered { grid-template-columns: minmax(0, 1fr); }
.lp-board.is-filtered .lp-col:not(.is-shown) { display: none; }
.lp-board.is-filtered .lp-col-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.lp-col { padding: 14px; border-radius: var(--lp-radius); background: rgba(var(--s3-rgb, 10, 10, 16), .45); border: 1px solid var(--lp-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lp-col h3 { display: flex; align-items: center; gap: 9px; margin: 2px 4px 14px; font-size: 15px; }
.lp-col h3 i { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--lp-muted); padding: 1px 9px; border-radius: 99px; border: 1px solid var(--lp-line); }
.lp-col-list { display: grid; gap: 10px; }
.lp-col-empty { padding: 18px; text-align: center; color: var(--lp-dim); font-size: 13px; border: 1px dashed var(--lp-line); border-radius: 14px; }
.lp-task { display: grid; gap: 10px; width: 100%; padding: 14px 15px; border-radius: 16px; border: 1px solid var(--lp-line); background: var(--lp-panel); text-align: start; cursor: pointer; transition: transform .25s var(--lp-ease), border-color .25s, box-shadow .25s; }
.lp-task:hover { transform: translateY(-3px); border-color: var(--lp-line-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.lp-task.is-done { border-inline-start: 3px solid rgba(var(--lp-green), .7); }
.lp-task.is-active { border-inline-start: 3px solid rgb(var(--lp-cyan)); }
.lp-task.is-planned { border-inline-start: 3px solid rgba(var(--lp-planned), .45); }
.lp-task.is-working { border-color: rgba(var(--lp-green), .45); box-shadow: 0 0 0 1px rgba(var(--lp-green), .2), 0 0 26px rgba(var(--lp-green), .12); }
.lp-task-top { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.lp-task-top strong { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.lp-task.is-done .lp-task-top strong { color: var(--lp-text-2); }
.lp-task-stages { display: flex; align-items: center; gap: 8px; color: var(--lp-muted); font-size: 11.5px; }
.lp-task-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--lp-muted); font-size: 12px; }
.lp-task-open { color: rgb(var(--lp-gold)); font-weight: 700; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.is-ar .lp-task-open { transform: translateX(4px); }
.lp-task:hover .lp-task-open, .lp-task:focus-visible .lp-task-open { opacity: 1; transform: none; }

/* ---------- task viewer ---------- */
.lp-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.lp-modal[hidden] { display: none; }
.lp-modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 10, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.lp-modal.is-open .lp-modal-backdrop { opacity: 1; }
.lp-modal-card { position: relative; width: min(620px, 100%); max-height: min(86vh, 760px); overflow: auto; padding: 26px; border-radius: 26px; background: radial-gradient(circle at 0% 0%, rgba(var(--acc, var(--lp-gold)), .14), transparent 45%), rgba(var(--s3-rgb, 10, 10, 16), .96); border: 1px solid var(--lp-line-2); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); outline: none; }
html[data-site-theme] .lp-modal-card { background: radial-gradient(circle at 0% 0%, rgba(var(--acc, var(--lp-gold)), .14), transparent 45%), rgba(var(--s3-rgb, 10, 10, 16), .9); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.lp-modal-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, rgb(var(--acc, var(--lp-gold))), transparent); }
.lp-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-modal-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-icon-btn { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--lp-line-2); background: var(--lp-panel-2); cursor: pointer; font-size: 15px; }
.lp-icon-btn:hover { background: rgba(var(--ink-rgb, 255, 255, 255), .08); }
.lp-modal-project { display: block; margin-top: 18px; color: rgb(var(--acc, var(--lp-gold))); font-weight: 600; font-size: 12.5px; }
.lp-modal-card h2 { margin: 4px 0 0; font-size: 24px; line-height: 1.4; }
.lp-modal-working { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 13px; border-radius: 13px; background: rgba(var(--lp-green), .08); border: 1px solid rgba(var(--lp-green), .25); font-size: 13px; color: var(--lp-text-2); }
.lp-modal-working[hidden] { display: none; }
.lp-modal-working b { font-variant-numeric: tabular-nums; color: var(--lp-text); }
.lp-modal-sec { margin-top: 20px; }
.lp-modal-sec h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 13px; color: var(--lp-muted); font-weight: 700; letter-spacing: .02em; }
.lp-modal-sec h3 small { color: rgb(var(--lp-green)); font-size: 12px; }
.lp-modal-sec p { margin: 0; color: var(--lp-text-2); white-space: pre-line; }
.lp-stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-stage-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: var(--lp-panel-2); border: 1px solid var(--lp-line); opacity: 0; transform: translateY(8px); animation: lpStageIn .45s var(--lp-ease) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes lpStageIn { to { opacity: 1; transform: none; } }
.lp-stage-list li span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(var(--lp-planned), .5); font-size: 12px; font-weight: 800; color: var(--lp-muted); }
.lp-stage-list li.is-on span { background: rgb(var(--lp-green)); border-color: rgb(var(--lp-green)); color: rgb(var(--s1-rgb, 7, 7, 11)); }
.lp-stage-list li b { flex: 1; font-weight: 600; font-size: 14px; }
.lp-stage-list li small { color: var(--lp-muted); font-size: 12px; }
.lp-stage-list li.is-on small { color: rgb(var(--lp-green)); }
.lp-modal-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0 0; }
.lp-modal-dates div { padding: 12px 14px; border-radius: 14px; background: var(--lp-panel-2); border: 1px solid var(--lp-line); }
.lp-modal-dates dt { color: var(--lp-muted); font-size: 11.5px; }
.lp-modal-dates dd { margin: 2px 0 0; font-weight: 700; }
.lp-modal-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--lp-line); }
.lp-nav-btn { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--lp-line-2); background: var(--lp-panel-2); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--lp-text-2); }
.lp-nav-btn:hover:not(:disabled) { color: var(--lp-text); border-color: rgba(var(--lp-gold), .4); }
.lp-nav-btn:disabled { opacity: .35; cursor: default; }
.lp-state-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid; }
.lp-state-pill.is-done { color: rgb(var(--lp-green)); border-color: rgba(var(--lp-green), .35); background: rgba(var(--lp-green), .08); }
.lp-state-pill.is-active { color: rgb(var(--lp-cyan)); border-color: rgba(var(--lp-cyan), .35); background: rgba(var(--lp-cyan), .08); }
.lp-state-pill.is-planned { color: var(--lp-text-2); border-color: var(--lp-line-2); background: var(--lp-panel-2); }

/* ---------- footer ---------- */
.lp-footer { margin-top: 80px; border-top: 1px solid var(--lp-line); background: rgba(var(--s1-rgb, 7, 7, 11), .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lp-footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; color: var(--lp-muted); font-size: 13px; }
.lp-footer-inner a { color: rgb(var(--lp-gold)); font-weight: 600; }

/* ---------- reveal on scroll ---------- */
[data-lp-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--lp-ease), transform .7s var(--lp-ease); transition-delay: calc(var(--d, 0) * 60ms); }
[data-lp-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-lp-reveal] { opacity: 1; transform: none; }

/* ---------- motion settings ---------- */
html[data-lp-motion="light"] :is(.lp-bg-grid, .lp-bg-glow, .lp-now::after, .lp-pipe-track, .lp-pipe-core-glow) { animation: none !important; }
html[data-lp-motion="light"] .lp-pipe-dot { display: none; }
html[data-lp-motion="off"] *, html[data-lp-motion="off"] *::before, html[data-lp-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-lp-motion="off"] .lp-pipe-dot { display: none; }
html[data-lp-motion="off"] [data-lp-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .lp-pipe-dot { display: none; }
    [data-lp-reveal] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .lp-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
    .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-board { grid-template-columns: 1fr; }
    .lp-phero { grid-template-columns: 1fr; }
    .lp-phero-ring { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .lp-shell { width: min(1200px, 100% - 28px); }
    .lp-hide-sm { display: none !important; }
    .lp-brand small { display: none; }
    .lp-nav a { padding: 7px 10px; font-size: 13px; }
    .lp-hero h1 { font-size: 40px; }
    .lp-stat { padding: 14px; column-gap: 10px; }
    .lp-stat-ic { width: 36px; height: 36px; font-size: 15px; border-radius: 11px; }
    .lp-stat b { font-size: 22px; }
    .lp-projects { grid-template-columns: 1fr; }
    .lp-now-grid { grid-template-columns: 1fr; }
    .lp-now { padding: 16px; gap: 12px; }
    .lp-phero { padding: 22px; gap: 22px; }
    .lp-ring--xl { width: 140px; height: 140px; }
    .lp-ring--xl b { font-size: 32px; }
    .lp-filters { border-radius: 18px; }
    .lp-modal { padding: 0; align-items: end; }
    .lp-modal-card { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
    .lp-cta-band { padding: 24px; }
    .lp-pipe-label { padding: 4px 9px; }
    .lp-pipe-label b { font-size: 16px; }
}

/* ---------- v1.1: task description + attachments ---------- */
.lp-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-file-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--lp-panel-2); border: 1px solid var(--lp-line); opacity: 0; transform: translateY(8px); animation: lpStageIn .45s var(--lp-ease) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
.lp-file-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(var(--acc, var(--lp-gold)), .12); color: rgb(var(--acc, var(--lp-gold))); font-size: 16px; }
.lp-file-main { flex: 1; min-width: 0; display: grid; }
.lp-file-main b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-file-main small { color: var(--lp-muted); font-size: 11.5px; }
.lp-file-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--lp-line-2); background: transparent; color: var(--lp-text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.lp-file-btn:hover { color: var(--lp-text); border-color: rgba(var(--acc, var(--lp-gold)), .5); }
.lp-file-btn.is-view { background: rgba(var(--acc, var(--lp-gold)), .12); border-color: rgba(var(--acc, var(--lp-gold)), .35); color: var(--lp-text); }
.lp-file-btn:not(.is-view) { width: 34px; padding: 0; justify-content: center; }
.lp-task-files { display: inline-flex; align-items: center; gap: 5px; color: var(--lp-muted); font-size: 11.5px; }
.lp-modal-sec #lpModalNote { line-height: 1.85; }
@media (max-width: 640px) { .lp-file-btn.is-view span { display: none; } }
