/* TEMP_PREVIEW: hide everything else so portfolio fits a 1440x4500 shot */
body.preview-only > section:not(#portfolio):not(#contact),
body.preview-only > #nav,
body.preview-only > #progress-bar,
body.preview-only > .mobile-menu { display: none !important; }

/* ============================================================
   PORTFOLIO SECTION · Selected Works
   Designer-grade device mockups + project cards
   ============================================================ */

.section-portfolio {
  padding: 120px 0 140px;
  background:
    radial-gradient(ellipse 1200px 600px at 20% 0%, rgba(0,212,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 900px 500px at 80% 100%, rgba(245,166,35,0.04) 0%, transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.section-portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Category pill row */
.portfolio-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: -20px 0 56px;
}
.pi-pill {
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.12em;
  padding: 8px 18px;
  border: 0.5px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(4px);
}

/* Card grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin: 0 auto;
  max-width: 1280px;
  position: relative;
  z-index: 1;
}
/* First card = HERO featured (spans full width, horizontal layout) */
.portfolio-grid .pf-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  background:
    radial-gradient(ellipse 800px 400px at 30% -20%, rgba(34,197,94,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 90% 100%, rgba(0,212,255,0.05) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20,40,68,0.95) 0%, rgba(12,28,46,0.98) 100%);
}
.portfolio-grid .pf-card:first-child .pf-mock {
  border-bottom: none;
  border-right: 0.5px solid var(--rule);
  height: 100%;
  min-height: 480px;
}
.portfolio-grid .pf-card:first-child .pf-mock .phone-frame {
  width: 250px;
  height: 520px;
}
.portfolio-grid .pf-card:first-child .pf-body {
  padding: 44px 48px;
  gap: 22px;
}
.portfolio-grid .pf-card:first-child .pf-title {
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: 0.01em;
}
.portfolio-grid .pf-card:first-child .pf-desc {
  font-size: 16px;
}
.portfolio-grid .pf-card:first-child .pfk-num {
  font-size: 38px;
}
.portfolio-grid .pf-card:first-child .pfk-plus {
  font-size: 22px;
}
.portfolio-grid .pf-card:first-child .pfk-lbl {
  font-size: 12px;
}
.portfolio-grid .pf-card:first-child::before {
  background: linear-gradient(135deg, rgba(34,197,94,0.25) 0%, transparent 30%, transparent 70%, rgba(0,212,255,0.18) 100%);
  opacity: 0.8;
}

/* Card 2-5 grid */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-grid .pf-card:first-child { grid-template-columns: 1fr; }
  .portfolio-grid .pf-card:first-child .pf-mock {
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
    min-height: 320px;
  }
  .portfolio-grid .pf-card:first-child .pf-title { font-size: 26px; }
}

/* Card shell */
.pf-card {
  position: relative;
  background:
    radial-gradient(ellipse 600px 300px at 50% -10%, rgba(0,212,255,0.04) 0%, transparent 60%),
    linear-gradient(180deg, rgba(18,36,62,0.92) 0%, rgba(10,25,41,0.96) 100%);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 28px;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(.15,.8,.2,1),
    border-color 0.4s,
    box-shadow 0.4s;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(0,212,255,0.04) inset,
    0 24px 70px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,212,255,0.02);
}
.pf-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 0.5px;
  background: linear-gradient(135deg, rgba(0,212,255,0.18) 0%, transparent 30%, transparent 70%, rgba(245,166,35,0.12) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s;
}
.pf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,255,0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 80px rgba(0,0,0,0.4),
    0 0 0 1px rgba(0,212,255,0.05);
}
.pf-card:hover::before { opacity: 1; }

/* Mockup area */
.pf-mock {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 30%, rgba(0,212,255,0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(13,32,56,0.6) 0%, rgba(8,20,35,0.8) 100%);
  overflow: hidden;
  border-bottom: 0.5px solid var(--rule);
}
.pf-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 30%, rgba(255,255,255,0.012) 1px, transparent 1.5px);
  background-size: 4px 4px;
  pointer-events: none;
}
.pf-mock::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(8,20,35,0.6) 100%);
  pointer-events: none;
}

/* ============================================================
   PHONE FRAME (iPhone-inspired bezel)
   ============================================================ */
.phone-frame {
  width: 220px;
  height: 460px;
  background: linear-gradient(135deg, #181f2c 0%, #0d141f 100%);
  border-radius: 36px;
  padding: 8px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(148,163,184,0.18),
    inset 0 0 0 0.5px rgba(255,255,255,0.06),
    0 24px 48px rgba(0,0,0,0.5),
    0 4px 12px rgba(0,212,255,0.08);
}
.phone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 35%, transparent 65%, rgba(255,255,255,0.04) 100%);
  pointer-events: none;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #050810;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-notch::after {
  content: '';
  position: absolute;
  right: 14px; top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #0d1822;
  box-shadow: 0 0 0 1px rgba(0,212,255,0.2);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0e15;
  border-radius: 30px;
  overflow: hidden;
  padding: 32px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-cn);
  font-size: 8.5px;
}

/* Phone status bar */
.ps-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.ps-time { color: var(--text-1); }
.ps-icons { letter-spacing: 0.15em; opacity: 0.7; }

/* Tab bar */
.ps-tabbar {
  display: flex;
  gap: 6px;
  padding: 4px 4px;
  border-bottom: 0.5px solid rgba(148,163,184,0.1);
}
.ps-tab {
  font-size: 8px;
  color: var(--text-4);
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.ps-tab.active {
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  font-weight: 700;
}

/* Video grid */
.ps-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 4px 2px;
}
.ps-thumb {
  position: relative;
  background:
    linear-gradient(135deg, #1a2942 0%, #0f1b2b 100%);
  border-radius: 5px;
  border: 0.25px solid rgba(148,163,184,0.08);
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.ps-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(245,166,35,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(0,212,255,0.1) 0%, transparent 50%);
}
.ps-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ps-tag-hd, .ps-tag-vip, .ps-tag-hot {
  position: absolute;
  top: 2px; left: 2px;
  font-size: 6.5px;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  z-index: 1;
}
.ps-tag-hd { background: rgba(0,212,255,0.85); color: #04101a; }
.ps-tag-vip { background: linear-gradient(135deg, #f5a623 0%, #d68910 100%); color: #1a1106; }
.ps-tag-hot { background: rgba(239,68,68,0.85); color: #fff; }
.ps-tag-time {
  position: absolute;
  bottom: 2px; right: 3px;
  font-size: 6.5px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.5);
  padding: 1px 3px;
  border-radius: 2px;
  font-family: var(--font-mono);
  z-index: 1;
}

/* Bottom nav */
.ps-nav {
  display: flex;
  justify-content: space-around;
  padding-top: 4px;
  border-top: 0.5px solid rgba(148,163,184,0.08);
}
.psn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 6.5px;
  color: var(--text-4);
}
.psn-dot {
  width: 8px; height: 8px;
  background: var(--text-4);
  border-radius: 50%;
  opacity: 0.6;
}
.psn-dot.center {
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #0099cc 100%);
  opacity: 1;
  box-shadow: 0 0 8px rgba(0,212,255,0.4);
}
.psn-item.active .psn-dot {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 6px rgba(0,212,255,0.5);
}
.psn-item.active span { color: var(--accent); }

/* ============================================================
   FINANCE PHONE (dark trading UI)
   ============================================================ */
.finance-frame {
  box-shadow:
    0 0 0 1px rgba(148,163,184,0.18),
    inset 0 0 0 0.5px rgba(255,255,255,0.06),
    0 24px 48px rgba(0,0,0,0.5),
    0 4px 12px rgba(34,197,94,0.08);
}
.finance-screen {
  background: #060d16;
  padding: 32px 10px 8px;
  gap: 5px;
}
.fs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
}
.fs-pair {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.05em;
}
.fs-net {
  font-size: 7px;
  color: var(--gold);
  background: rgba(245,166,35,0.12);
  border: 0.25px solid rgba(245,166,35,0.4);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.fs-price {
  padding: 4px 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.fs-big {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fs-up {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #22c55e;
  font-weight: 600;
}
.fs-chart {
  height: 60px;
  padding: 2px 4px;
  background: rgba(34,197,94,0.04);
  border-radius: 4px;
}
.fs-chart svg { width: 100%; height: 100%; }
.fs-orderbook {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 6.5px;
}
.fs-side { display: flex; flex-direction: column; gap: 1px; }
.fs-row {
  display: flex;
  justify-content: space-between;
  padding: 1.5px 3px;
  border-radius: 2px;
}
.fs-sell .fs-row { color: #ef4444; background: rgba(239,68,68,0.06); }
.fs-buy .fs-row { color: #22c55e; background: rgba(34,197,94,0.06); }
.fs-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px 4px 0;
}
.fs-btn {
  font-size: 7.5px;
  text-align: center;
  padding: 4px 0;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}
.fs-btn.buy {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 1px 4px rgba(34,197,94,0.3);
}
.fs-btn.sell {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 1px 4px rgba(239,68,68,0.3);
}

/* ============================================================
   BROWSER FRAME (macOS-inspired)
   ============================================================ */
.browser-frame {
  width: 90%;
  max-width: 420px;
  height: 300px;
  background: linear-gradient(180deg, #0d1825 0%, #08111c 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 0.5px rgba(148,163,184,0.18),
    inset 0 0.5px 0 rgba(255,255,255,0.04),
    0 24px 56px rgba(0,0,0,0.5),
    0 0 1px rgba(0,212,255,0.1);
  display: flex;
  flex-direction: column;
}
.browser-bar {
  height: 32px;
  background: linear-gradient(180deg, #1a2535 0%, #131e2c 100%);
  border-bottom: 0.5px solid rgba(148,163,184,0.1);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 14px;
  flex-shrink: 0;
}
.bb-dots {
  display: flex;
  gap: 6px;
}
.bb-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.bb-dots span:nth-child(1) { background: #ff5f57; box-shadow: 0 0 4px rgba(255,95,87,0.3); }
.bb-dots span:nth-child(2) { background: #febc2e; }
.bb-dots span:nth-child(3) { background: #28c840; }
.bb-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  background: rgba(8,15,25,0.6);
  border: 0.5px solid rgba(148,163,184,0.08);
  border-radius: 4px;
  padding: 3px 10px;
  text-align: center;
  letter-spacing: 0.02em;
}
.bb-lock {
  color: var(--accent);
  margin-right: 4px;
  font-size: 8px;
}
.browser-screen {
  flex: 1;
  overflow: hidden;
  font-family: var(--font-cn);
  position: relative;
}

/* H5 video site browser screen */
.bs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,212,255,0.04);
  border-bottom: 0.5px solid rgba(148,163,184,0.08);
}
.bs-logo {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.1em;
}
.bs-search {
  flex: 1;
  font-size: 8.5px;
  color: var(--text-4);
  background: rgba(8,15,25,0.6);
  border: 0.5px solid rgba(148,163,184,0.08);
  border-radius: 12px;
  padding: 3px 10px;
}
.bs-vip {
  font-size: 8px;
  color: var(--gold);
  background: rgba(245,166,35,0.12);
  border: 0.5px solid rgba(245,166,35,0.3);
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.bs-cats {
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 0.5px solid rgba(148,163,184,0.06);
  font-size: 9px;
}
.bs-cat {
  color: var(--text-4);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.bs-cat.active {
  color: var(--accent);
  background: rgba(0,212,255,0.1);
  font-weight: 600;
}
.bs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 12px;
}
.bs-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bsc-thumb {
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(ellipse at 35% 35%, rgba(245,166,35,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(0,212,255,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #1a2942 0%, #0f1b2b 100%);
  border-radius: 4px;
  border: 0.25px solid rgba(148,163,184,0.08);
  position: relative;
}
.bsc-thumb::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.bsc-line {
  height: 4px;
  background: rgba(148,163,184,0.15);
  border-radius: 2px;
}
.bsc-line.short {
  width: 60%;
  background: rgba(148,163,184,0.08);
}

/* Light dashboard screen (P2PStorm) */
.browser-screen-light {
  background: #f7fafc;
  display: flex;
  flex-direction: row;
}
.bsl-side {
  width: 90px;
  background: #ffffff;
  border-right: 0.5px solid rgba(0,0,0,0.06);
  padding: 10px 8px;
  flex-shrink: 0;
}
.bsl-logo {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: #0a1929;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  margin-bottom: 8px;
}
.bsl-menu { display: flex; flex-direction: column; gap: 4px; }
.bsl-mi {
  font-size: 8.5px;
  color: #64748b;
  padding: 4px 6px;
  border-radius: 3px;
  font-weight: 500;
}
.bsl-mi.active {
  color: #0066cc;
  background: rgba(0,212,255,0.1);
  font-weight: 700;
}
.bsl-main {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.bsl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.bsl-stat {
  background: #ffffff;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 6px 8px;
}
.bsl-sn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: #0a1929;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.bsl-sl {
  font-size: 7px;
  color: #94a3b8;
  margin-top: 2px;
  letter-spacing: 0.05em;
}
.bsl-chart {
  flex: 1;
  background: #ffffff;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  padding: 6px;
  min-height: 100px;
}
.bsl-chart svg { width: 100%; height: 100%; }

/* Admin dark screen (bittrust) */
.browser-screen-admin {
  background: linear-gradient(180deg, #0c1622 0%, #060e18 100%);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ba-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ba-title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.04em;
}
.ba-pill {
  font-size: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}
.ba-pill.on {
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  border: 0.5px solid rgba(34,197,94,0.35);
}
.ba-chains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.ba-chain {
  background: rgba(0,212,255,0.04);
  border: 0.5px solid rgba(0,212,255,0.12);
  border-radius: 4px;
  padding: 6px 6px;
}
.bac-name {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.bac-block {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-2);
  margin-top: 2px;
  letter-spacing: -0.02em;
}
.bac-bar {
  height: 2px;
  background: rgba(0,212,255,0.1);
  border-radius: 1px;
  margin-top: 4px;
  overflow: hidden;
}
.bac-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #0099cc 100%);
  border-radius: 1px;
}
.ba-table {
  flex: 1;
  border: 0.5px solid rgba(148,163,184,0.08);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 8px;
}
.bat-head {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.4fr 1fr;
  background: rgba(0,212,255,0.06);
  padding: 4px 8px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
  border-bottom: 0.5px solid rgba(148,163,184,0.08);
}
.bat-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.4fr 1fr;
  padding: 4px 8px;
  color: var(--text-2);
  border-bottom: 0.5px solid rgba(148,163,184,0.04);
}
.bat-row:last-child { border-bottom: none; }
.bat-row .cn { color: var(--accent); font-weight: 700; }
.bat-row .gold-txt { color: var(--gold); font-weight: 700; }
.bat-row .ok { color: #22c55e; font-weight: 600; }
.bat-row .pending { color: #f5a623; font-weight: 600; opacity: 0.8; }

/* ============================================================
   CARD BODY (project description + KPI + pills)
   ============================================================ */
.pf-body {
  padding: 32px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pf-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pf-cat {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}
.pf-cat.android-cat {
  color: #22c55e;
  background: rgba(34,197,94,0.08);
  border: 0.5px solid rgba(34,197,94,0.25);
}
.pf-cat.web-cat {
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 0.5px solid rgba(0,212,255,0.25);
}
.pf-cat.finance-cat {
  color: var(--gold);
  background: rgba(245,166,35,0.08);
  border: 0.5px solid rgba(245,166,35,0.3);
}
.pf-status {
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-4);
}
.pf-status.live {
  color: #22c55e;
}
.pf-status.live::before {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2s infinite;
}
.pf-status.internal {
  color: var(--text-3);
}
.pf-status.internal::before { background: var(--text-3); }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.pf-title {
  font-family: var(--font-cn);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-top: 4px;
}
.pf-desc {
  font-family: var(--font-cn);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

/* KPI row */
.pf-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 0.5px solid var(--rule-soft);
  border-bottom: 0.5px solid var(--rule-soft);
}
.pf-kpi { text-align: left; }
.pfk-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums slashed-zero;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.pfk-plus {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}
.pfk-unit {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  margin-left: 2px;
}
.pfk-lbl {
  font-family: var(--font-cn);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.12em;
  margin-top: 6px;
}

/* Tech pills */
.pf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(255,255,255,0.025);
  border: 0.5px solid var(--rule);
  letter-spacing: 0.02em;
}
.pf-pill.core {
  color: var(--accent);
  background: rgba(0,212,255,0.06);
  border-color: rgba(0,212,255,0.22);
  font-weight: 600;
}

/* ── Access link / CTA button at card bottom ─────────────── */
.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: rgba(0,212,255,0.06);
  border: 0.5px solid var(--accent-border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(.15,.8,.2,1);
  width: fit-content;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.pf-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.pf-link:hover {
  background: rgba(0,212,255,0.14);
  border-color: var(--accent);
  color: #66ddff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,212,255,0.2);
}
.pf-link:hover::before { transform: translateX(100%); }
.pf-link-arrow {
  font-weight: 700;
  transition: transform 0.3s;
  font-size: 15px;
}
.pf-link:hover .pf-link-arrow { transform: translateX(4px); }
.pf-link-url { position: relative; z-index: 1; }
.pf-link.disabled {
  background: rgba(148,163,184,0.04);
  border-color: var(--rule);
  color: var(--text-4);
  cursor: default;
  pointer-events: none;
}
.pf-link.disabled .pf-link-arrow { opacity: 0.4; }

/* Bottom note */
.portfolio-note {
  margin-top: 56px;
  text-align: center;
  font-family: var(--font-cn);
  font-size: 13px;
  color: var(--text-4);
  letter-spacing: 0.1em;
  line-height: 1.8;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   IM CHAT (used elsewhere, leftover-safe)
   ============================================================ */
.im-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px;
  overflow: hidden;
}
.im-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 0.5px solid rgba(148,163,184,0.08);
  padding-right: 4px;
}
.im-conv {
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 8px;
}
.im-conv.active { background: rgba(0,212,255,0.08); }
.imc-name { font-weight: 700; color: var(--text-1); font-family: var(--font-mono); }
.imc-last { color: var(--text-4); margin-top: 1px; font-size: 7.5px; }
.im-chat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 8px;
}
.im-msg.user { align-self: flex-end; max-width: 70%; }
.im-msg.cs { align-self: flex-start; max-width: 80%; }
.imm-bubble {
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1.4;
}
.im-msg.user .imm-bubble { background: rgba(0,212,255,0.15); color: var(--text-1); }
.im-msg.cs .imm-bubble { background: rgba(148,163,184,0.1); color: var(--text-2); }
.im-input {
  margin-top: auto;
  padding: 4px 8px;
  background: rgba(0,0,0,0.3);
  border: 0.5px solid rgba(148,163,184,0.08);
  border-radius: 4px;
  color: var(--text-4);
  font-size: 8px;
}

/* ============================================================
   SIGNATURE ANIMATIONS · "non-应付" tier
   ============================================================ */

/* ── 1. Card reveal: clip-path mask + 3D rotateY + scale ──── */
.pf-card.reveal-up {
  opacity: 0;
  transform: perspective(1200px) rotateY(-8deg) translateY(40px) scale(0.96);
  clip-path: inset(0 0 100% 0 round 24px);
  transition:
    opacity 0.9s cubic-bezier(.15,.8,.2,1),
    transform 1.1s cubic-bezier(.15,.8,.2,1),
    clip-path 1.1s cubic-bezier(.15,.8,.2,1);
}
.pf-card.reveal-up.visible {
  opacity: 1;
  transform: perspective(1200px) rotateY(0) translateY(0) scale(1);
  clip-path: inset(0 0 0 0 round 24px);
}

/* ── 2. Hover: 3D tilt set by JS (--rx/--ry) + glowing conic border ── */
.pf-card {
  transform-style: preserve-3d;
  --rx: 0deg;
  --ry: 0deg;
}
.pf-card.tilt {
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
}
.pf-card:hover .pf-mock { transform: translateY(-3px); }
.pf-mock { transition: transform 0.6s cubic-bezier(.15,.8,.2,1); }

/* Conic accent border on hover — uses radial follow via JS-set --mx --my */
.pf-card {
  --mx: 50%;
  --my: 50%;
}
.pf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(circle 300px at var(--mx) var(--my),
    rgba(0,212,255,0.12) 0%,
    rgba(0,212,255,0.04) 30%,
    transparent 60%);
  mix-blend-mode: screen;
  z-index: 1;
}
.pf-card:hover::after { opacity: 1; }

/* ── 3. Device frame float + glow on card hover ──────────── */
.pf-card:hover .phone-frame {
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.3),
    inset 0 0 0 0.5px rgba(255,255,255,0.08),
    0 30px 60px rgba(0,0,0,0.6),
    0 8px 24px rgba(0,212,255,0.18);
}
.pf-card:hover .finance-frame {
  box-shadow:
    0 0 0 1px rgba(245,166,35,0.25),
    inset 0 0 0 0.5px rgba(255,255,255,0.08),
    0 30px 60px rgba(0,0,0,0.6),
    0 8px 24px rgba(245,166,35,0.18);
}
.pf-card:hover .browser-frame {
  box-shadow:
    0 0 0 0.5px rgba(0,212,255,0.25),
    inset 0 0.5px 0 rgba(255,255,255,0.06),
    0 30px 64px rgba(0,0,0,0.6),
    0 0 12px rgba(0,212,255,0.15);
}
.phone-frame, .finance-frame, .browser-frame {
  transition: box-shadow 0.6s cubic-bezier(.15,.8,.2,1);
}

/* ── 4. Thumbnail shimmer (video grid) ───────────────────── */
.ps-thumb {
  position: relative;
}
.ps-thumb .shimmer,
.bsc-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.12) 50%,
    transparent 60%,
    transparent 100%);
  background-size: 250% 100%;
  animation: shimmer-sweep 4s ease-in-out infinite;
  pointer-events: none;
}
.bsc-thumb { position: relative; overflow: hidden; }
.bsc-thumb::before { z-index: 1; border-radius: 4px; }
.bsc-thumb::after { z-index: 2; position: absolute; }

@keyframes shimmer-sweep {
  0%   { background-position: 200% 0; }
  60%  { background-position: -100% 0; }
  100% { background-position: -100% 0; }
}

/* ── 5. Hot tag pulse ────────────────────────────────────── */
.ps-tag-hot {
  animation: pulse-hot 1.6s ease-in-out infinite;
}
@keyframes pulse-hot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%      { transform: scale(1.08); box-shadow: 0 0 6px 2px rgba(239,68,68,0); }
}

/* ── 6. Phone center FAB pulse ───────────────────────────── */
.psn-dot.center {
  animation: glow-cyan 2.4s ease-in-out infinite;
}
@keyframes glow-cyan {
  0%, 100% { box-shadow: 0 0 8px rgba(0,212,255,0.4), 0 0 0 0 rgba(0,212,255,0.4); }
  50%      { box-shadow: 0 0 14px rgba(0,212,255,0.7), 0 0 0 6px rgba(0,212,255,0); }
}

/* ── 7. Trading chart line draw + price flicker ─────────── */
.fs-chart svg path[stroke="#22c55e"] {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-line 3s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes draw-line {
  0%   { stroke-dashoffset: 1200; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
.fs-big {
  animation: price-flicker 3.2s ease-in-out infinite;
}
@keyframes price-flicker {
  0%, 90%, 100% { color: #22c55e; text-shadow: 0 0 0 transparent; }
  92%           { color: #4ade80; text-shadow: 0 0 6px rgba(34,197,94,0.6); }
  94%           { color: #22c55e; }
}

/* Orderbook rows shimmer */
.fs-sell .fs-row:nth-child(1) { animation: ob-blink 4s 0.3s infinite; }
.fs-sell .fs-row:nth-child(2) { animation: ob-blink 4s 0.7s infinite; }
.fs-buy .fs-row:nth-child(1)  { animation: ob-blink 4s 1.1s infinite; }
.fs-buy .fs-row:nth-child(3)  { animation: ob-blink 4s 1.6s infinite; }
@keyframes ob-blink {
  0%, 95%, 100% { opacity: 1; }
  96%, 98%      { opacity: 0.45; }
}

/* ── 8. P2PStorm dashboard chart draw ─────────────────────── */
.bsl-chart svg path[stroke="#00d4ff"] {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line-cyan 4s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes draw-line-cyan {
  0%         { stroke-dashoffset: 600; }
  70%, 100%  { stroke-dashoffset: 0; }
}

/* ── 9. Scanner progress bars — flowing gradient ─────────── */
.bac-bar span {
  background: linear-gradient(90deg,
    var(--accent) 0%,
    #0099cc 30%,
    rgba(255,255,255,0.6) 50%,
    #0099cc 70%,
    var(--accent) 100%);
  background-size: 200% 100%;
  animation: flow-bar 2.4s linear infinite;
}
@keyframes flow-bar {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 10. Status pill heartbeat ───────────────────────────── */
.ba-pill.on {
  position: relative;
  overflow: hidden;
}
.ba-pill.on::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.4), transparent);
  animation: pill-sweep 2.4s ease-in-out infinite;
}
@keyframes pill-sweep {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ── 11. Scanner table rows — stagger fade-in on loop ───── */
.bat-row {
  animation: row-fadein 0.6s ease-out both;
}
.bat-row:nth-child(2) { animation-delay: 0.3s; }
.bat-row:nth-child(3) { animation-delay: 0.6s; }
.bat-row:nth-child(4) { animation-delay: 0.9s; }
.bat-row:nth-child(5) { animation-delay: 1.2s; }
@keyframes row-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bat-row .gold-txt { animation: gold-flicker 5s ease-in-out infinite; }
@keyframes gold-flicker {
  0%, 95%, 100% { text-shadow: 0 0 0 transparent; }
  96%           { text-shadow: 0 0 8px rgba(245,166,35,0.5); }
}

/* ── 12. Phone tab auto-cycle (rotates active) ───────────── */
.ps-tab {
  position: relative;
  transition: all 0.4s;
}
.ps-tabbar { animation: tab-cycle-pad 8s linear infinite; }
@keyframes tab-cycle-pad { from {} to {} }
/* Active rotation handled via JS pulse-cycle below */

/* ── 13. KPI count-up entry effect ────────────────────────── */
.pfk-num {
  background: linear-gradient(135deg, var(--accent) 0%, #66ddff 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: kpi-shine 4s ease-in-out infinite;
}
.pfk-plus, .pfk-unit { -webkit-text-fill-color: var(--accent); color: var(--accent); }
@keyframes kpi-shine {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

/* ── 14. Section grid pan ─────────────────────────────────── */
.section-portfolio::before {
  animation: grid-drift 60s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

/* ── 15. Title underline grow on reveal ──────────────────── */
.section-portfolio .section-header .sec-cn {
  position: relative;
  display: inline-block;
}
.section-portfolio .section-header .sec-cn::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), rgba(0,212,255,0.15));
  transition: width 1.2s cubic-bezier(.15,.8,.2,1) 0.4s;
}
.section-portfolio .section-header.visible .sec-cn::after,
.section-portfolio .section-header.reveal-up.visible .sec-cn::after {
  width: 100%;
}

/* ── 16. Pill float-up stagger ────────────────────────────── */
.portfolio-intro.reveal-up .pi-pill {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s, transform 0.5s;
}
.portfolio-intro.reveal-up.visible .pi-pill {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-intro.reveal-up.visible .pi-pill:nth-child(1) { transition-delay: 0.1s; }
.portfolio-intro.reveal-up.visible .pi-pill:nth-child(2) { transition-delay: 0.22s; }
.portfolio-intro.reveal-up.visible .pi-pill:nth-child(3) { transition-delay: 0.34s; }

/* ── 17. Tech pills — hover lift + accent flash ──────────── */
.pf-pill {
  transition: all 0.3s;
  cursor: default;
}
.pf-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,212,255,0.15);
}

/* ── 18. Live status dot ripple ───────────────────────────── */
.pf-status.live::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid #22c55e;
  transform: translateY(-50%);
  animation: ripple 2s ease-out infinite;
  opacity: 0;
}
.pf-status { position: relative; padding-left: 0; }
@keyframes ripple {
  0%   { transform: translateY(-50%) scale(1); opacity: 1; }
  100% { transform: translateY(-50%) scale(3); opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .pf-mock { height: 300px; }
  .phone-frame { width: 180px; height: 380px; }
  .browser-frame { height: 250px; }
  .pf-body { padding: 22px 22px; gap: 14px; }
  .pf-title { font-size: 18px; }
  .pf-desc { font-size: 13px; }
  .pfk-num { font-size: 22px; }
}
