/* DliteX portfolio. Builds on site.css tokens. */
[hidden] { display: none !important; }
.nav a.active { color: var(--brand); }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pstatus { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid; }
.pstatus::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pstatus-live { color: #157a52; background: #ecf8f2; border-color: #c6ead8; }
.pstatus-ready { color: var(--brand); background: var(--brand-50); border-color: var(--brand-100); }
.pstatus-proposal { color: #8a5a00; background: #fdf6e7; border-color: #f1e0b8; }
.pstatus-progress { color: #5b6170; background: var(--bg-alt); border-color: var(--line); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 20px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow.sm { font-size: 14px; margin-top: 14px; }
.link-arrow.sm:hover svg { transform: translate(2px, -2px); }

/* Browser + phone frames around real screenshots */
.browser { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #f3f4f6; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d9df; }
.browser-bar span { margin-left: 12px; flex: 1; max-width: 340px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; height: auto; aspect-ratio: 1440 / 840; object-fit: cover; object-position: top; }
.phone { margin: 0; width: 100%; max-width: 230px; border: 8px solid #14181f; border-radius: 32px; overflow: hidden; background: #14181f; box-shadow: var(--shadow-lg); }
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 780; object-fit: cover; object-position: top; border-radius: 24px; }

/* Index hero */
.work-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.work-hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 760; letter-spacing: -.03em; max-width: 880px; margin: 18px 0 18px; }
.work-hero .lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 44px 0 0; border-top: 1px solid var(--line); }
.hero-stats div { padding: 22px 20px 4px 0; }
.hero-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-stats dt { font-size: 26px; font-weight: 720; color: var(--ink); letter-spacing: -.02em; }
.hero-stats dd { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }

/* Filters */
.work-list { padding-top: 40px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.filter-bar button { font: inherit; font-size: 14px; font-weight: 500; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.filter-bar button:hover { border-color: #c4c9d2; }
.filter-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-empty { color: var(--muted); padding: 20px 0; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.list-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 720; letter-spacing: -.02em; }
.list-head p { color: var(--muted); }

/* Featured case studies */
.proj-list { display: grid; gap: 88px; }
.proj { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.proj.flip .proj-media { order: 2; }
.proj-media { display: block; transition: transform .25s; }
a.proj-media:hover { transform: translateY(-3px); }
.proj h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 740; letter-spacing: -.02em; }
.proj h3 a { color: inherit; text-decoration: none; }
.proj-tagline { font-size: 18px; color: var(--ink); font-weight: 500; margin: 6px 0 14px; }
.proj-copy > p:not(.eyebrow):not(.proj-tagline) { color: var(--body); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.mini-stats dt { font-size: 22px; font-weight: 720; color: var(--ink); letter-spacing: -.02em; }
.mini-stats dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Coming soon */
.soon-media { position: relative; padding-right: 60px; }
.soon-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.soon-body { aspect-ratio: 1440 / 840; display: grid; place-content: center; text-align: center; gap: 6px; background: repeating-linear-gradient(135deg, #f7f8fa 0 14px, #f1f3f6 14px 28px); }
.soon-body span { font-size: 30px; font-weight: 740; color: var(--ink); letter-spacing: -.02em; }
.soon-body small { color: var(--muted); font-size: 14px; }
.soon-phone { position: absolute; right: 0; bottom: -24px; width: 130px; aspect-ratio: 9 / 18.5; border: 7px solid #14181f; border-radius: 24px; background: #fff; display: grid; place-content: center; box-shadow: var(--shadow-lg); }
.soon-phone span { font-weight: 700; color: var(--ink); font-size: 15px; }

/* More work cards */
.wcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.wcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.wcard-media { display: block; border-bottom: 1px solid var(--line); overflow: hidden; }
.wcard-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .4s; }
.wcard:hover .wcard-media img { transform: scale(1.02); }
.wcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.wcard-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.wcard-body > p:not(.eyebrow) { font-size: 15px; }
.wcard-body .link-arrow { margin-top: auto; padding-top: 14px; }

/* How + capabilities */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.steps b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.caps > div { background: #fff; padding: 26px; }
.caps h3 { font-size: 17px; margin-bottom: 6px; }
.caps p { font-size: 15px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--ink); color: #c9ced8; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); font-weight: 720; letter-spacing: -.02em; margin-bottom: 10px; }
.cta-band p { max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: #4a5160; }
.cta-band .btn-outline:hover { border-color: #fff; color: #fff; }

/* Case study page */
.cs-hero { padding: 48px 0 0; background: linear-gradient(var(--bg-alt), var(--bg-alt)) no-repeat 0 100% / 100% 38%; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 28px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--brand); }
.cs-hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 780; letter-spacing: -.035em; }
.cs-tagline { font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); font-weight: 500; margin: 8px 0 18px; letter-spacing: -.01em; max-width: 760px; }
.cs-hero .lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.cs-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 48px; }
.cs-shot { position: relative; }
.cs-shot.with-phone { padding-right: 110px; }
.cs-shot .phone { position: absolute; right: 24px; bottom: -36px; max-width: 210px; }
.cs-facts { background: var(--bg-alt); padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr) 2fr; gap: 24px; }
.facts-grid > div > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.facts-grid b { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.45; display: block; }
.cs-body h2, .cs-result h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 720; letter-spacing: -.02em; margin-bottom: 18px; }
.cs-body .narrow > p { font-size: 18px; line-height: 1.7; margin-bottom: 16px; }
.cs-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-stats dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.cs-stats dl > div { padding: 36px 24px 36px 0; }
.cs-stats dl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.cs-stats dt { font-size: clamp(30px, 4vw, 44px); font-weight: 760; color: var(--brand); letter-spacing: -.03em; line-height: 1.1; }
.cs-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.approach { display: grid; gap: 28px; margin-top: 8px; }
.approach > div { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: 15px; }
.approach h3 { font-size: 18px; margin-bottom: 6px; }
.approach p { font-size: 16.5px; }
.cs-gallery { padding: 8px 0 0; }
.gallery { display: grid; gap: 28px; }
.gallery.g2 { grid-template-columns: 1fr 1fr; }
.gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.cap { font-size: 14px; color: var(--muted); margin-top: 10px; }
.narrow-head { margin: 0; }
.built { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.built > div { background: #fff; padding: 24px 26px; }
.built h3 { font-size: 17px; margin-bottom: 6px; }
.built p { font-size: 15px; color: var(--muted); }
.stack { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.stack > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.stack .tags { margin: 0; }
.result-text { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.5; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.next-case { display: block; text-decoration: none; border-top: 1px solid var(--line); transition: background .15s; }
.next-case:hover { background: var(--brand-50); }
.next-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.next-case span { font-size: 13px; color: var(--muted); font-weight: 600; }
.next-case b { display: block; font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); letter-spacing: -.02em; margin: 2px 0 4px; }
.next-case p { color: var(--muted); }
.next-case svg { width: 36px; height: 36px; color: var(--brand); flex-shrink: 0; transition: transform .2s; }
.next-case:hover svg { transform: translateX(4px); }

/* Responsive */
@media (max-width: 1000px) {
  .proj, .proj.flip { grid-template-columns: 1fr; gap: 28px; }
  .proj.flip .proj-media { order: 0; }
  .wcards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-services { grid-column: 1 / -1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .work-hero { padding: 44px 0 28px; }
  .hero-stats, .cs-stats dl { grid-template-columns: 1fr 1fr; }
  .hero-stats div, .hero-stats div + div, .cs-stats dl > div, .cs-stats dl > div + div { padding: 18px 12px 14px 0; border-left: 0; }
  .hero-stats div:nth-child(even), .cs-stats dl > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .hero-stats div:nth-child(n+3), .cs-stats dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-stats dt { font-size: 21px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 36px; padding: 0 24px 4px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { flex-shrink: 0; }
  .proj-list { gap: 60px; }
  .mini-stats { gap: 10px; }
  .mini-stats dt { font-size: 18px; }
  .wcards, .steps, .caps, .built, .gallery.g2, .gallery.g3 { grid-template-columns: 1fr; }
  .browser-bar { height: 24px; padding: 0 9px; gap: 5px; }
  .browser-bar i { width: 7px; height: 7px; }
  .browser-bar span { font-size: 10.5px; padding: 0 8px; }
  .cs-shot.with-phone { padding-right: 24px; }
  .cs-shot .phone { max-width: 112px; right: 12px; bottom: -28px; border-width: 5px; border-radius: 20px; }
  .cs-shot .phone img { border-radius: 15px; }
  .cs-facts { padding-top: 52px; }
  .soon-media { padding-right: 40px; }
  .soon-phone { width: 92px; border-width: 5px; border-radius: 18px; }
  .soon-body span { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .proj-media, .wcard, .wcard-media img, .link-arrow svg, .next-case svg { transition: none !important; } }
@media (max-width: 600px) { .filter-bar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } }
@media (max-width: 720px) { .cs-hero { background-size: 100% 22%; } .cs-actions { margin-bottom: 32px; } }
.cs-note { font-size: 14px; color: var(--muted); margin-top: 12px; font-style: normal; }
.cs-phones { padding: 8px 0 56px; }
.phones-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.phones-row > div { width: calc(25% - 21px); max-width: 230px; }
.phones-row .cap { text-align: center; }
.gallery.g1 > div { max-width: 1000px; margin: 0 auto; }
@media (max-width: 720px) { .phones-row { gap: 20px; } .phones-row > div { width: calc(50% - 10px); } .cs-phones { padding-bottom: 40px; } }
/* Capability chips */
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chips li.ai { color: #5b3fd9; background: #f1edff; border-color: #ddd4ff; }
.cs-hero .chips { margin-top: 18px; }
/* AI panel */
.cs-ai { padding: 0 0 64px; }
.ai-panel { background: #14181f; color: #c9ced8; border-radius: 16px; padding: 40px; }
.ai-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.ai-head h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); font-weight: 720; letter-spacing: -.02em; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; background: #5b3fd9; border-radius: 999px; padding: 5px 12px; }
.ai-badge svg { width: 16px; height: 16px; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ai-grid > div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 20px; }
.ai-grid h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.ai-grid p { font-size: 14.5px; line-height: 1.55; }
/* Grouped stack */
.stack-title { font-size: clamp(20px, 2.4vw, 24px); font-weight: 720; margin: 48px 0 18px; }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.stack-group { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.stack-group h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.stack-group .tags { margin: 0; }
.stack-group.is-ai { border-color: #ddd4ff; background: #faf8ff; }
.stack-group.is-ai h3 { color: #5b3fd9; }
@media (max-width: 720px) { .ai-panel { padding: 24px 18px; border-radius: 12px; } .cs-ai { padding-bottom: 44px; } }
@media (max-width: 1000px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .caps { grid-template-columns: 1fr; } }
