/* Portfolio sample — scoped standalone page */
html.ps-page,
html.ps-page body {
  margin: 0;
  padding: 0;
  background: #fff;
}

html.ps-page #all,
html.ps-page #content {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.ps-site {
  scroll-behavior: smooth;
  --black: #111;
  --dark: #1a1a1a;
  --body: #333;
  --mid: #555;
  --muted: #888;
  --faint: #bbb;
  --border: #e5e5e5;
  --border-strong: #ccc;
  --bg: #f5f5f5;
  --white: #fff;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --green: #059669;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --radius: 10px;
  --max: 1020px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--body);
  line-height: 1.65;
  font-size: 16px;
}

.ps-site *, .ps-site *::before, .ps-site *::after {
  box-sizing: border-box;
}

.ps-site a {
  color: var(--blue);
  text-decoration: none;
}

.ps-site a:hover {
  text-decoration: underline;
}

.ps-site .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
.ps-site nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.ps-site .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ps-site .nav-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
}

.ps-site nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}

.ps-site nav ul a {
  font-size: 14px;
  color: var(--mid);
  font-weight: 500;
  transition: color 0.15s;
}

.ps-site nav ul a:hover {
  color: var(--black);
  text-decoration: none;
}

.ps-site .nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--dark);
  transition: border-color 0.15s;
}

.ps-site .nav-cta:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

/* Hero */
.ps-site #hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}

.ps-site #hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--black);
  margin: 0 0 22px;
}

.ps-site #hero h1 em {
  font-style: italic;
  color: var(--blue);
}

.ps-site .hero-sub {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 0 36px;
}

.ps-site .hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ps-site .btn-black {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--black);
  color: var(--white);
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}

.ps-site .btn-black:hover {
  background: #333;
  text-decoration: none;
  color: var(--white);
}

.ps-site .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  color: var(--dark);
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s;
}

.ps-site .btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

.ps-site .hero-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 24px;
}

.ps-site .signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ps-site .signal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--mid);
}

.ps-site .signal strong {
  color: var(--dark);
  font-weight: 600;
}

/* Section common */
.ps-site .s-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.ps-site .s-head {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  margin: 0 0 10px;
}

.ps-site .s-sub {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}

/* Projects grid */
.ps-site #projects-grid {
  padding: 64px 0 0;
}

.ps-site .proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.ps-site #projects-grid .proj-intro {
  padding-top: 64px;
}

.ps-site #projects-detail {
  padding-top: 24px;
}

.ps-site .pgcard {
  text-decoration: none;
  color: inherit;
}
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.ps-site .pgcard:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.07);
  text-decoration: none;
  color: inherit;
}

.ps-site .pgcard-thumb {
  height: 88px;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  position: relative;
}

.ps-site .pgcard-num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.ps-site .pgcard-type {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
  max-width: 55%;
}

.ps-site .c1 { background: #1e3a5f; }
.ps-site .c2 { background: #064e3b; }
.ps-site .c3 { background: #3b0764; }
.ps-site .c4 { background: #1c1917; }
.ps-site .c5 { background: #3f1d38; }

.ps-site .pgcard-body {
  padding: 16px 18px 18px;
}

.ps-site .pgcard-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 5px;
  line-height: 1.35;
}

.ps-site .pgcard-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.55;
  margin: 0 0 12px;
}

.ps-site .pgcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.ps-site .ptag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.ps-site .pgcard-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.ps-site .pgcard-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 200px 1fr;
}

.ps-site .pgcard-wide .pgcard-thumb {
  height: auto;
  min-height: 120px;
}

.ps-site .pgcard-wide .pgcard-title {
  font-size: 16px;
}

.ps-site .featured-badge {
  display: inline-flex;
  align-items: center;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Case study sections */
.ps-site .proj-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.ps-site .proj-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.ps-site .proj-num-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.ps-site .proj-title {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 8px;
}

.ps-site .proj-subtitle {
  font-size: 15px;
  color: var(--mid);
  max-width: 580px;
  margin: 0;
  line-height: 1.65;
}

.ps-site .proj-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  flex-shrink: 0;
}

.ps-site .badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid;
}

.ps-site .badge-blue { color: var(--blue); background: var(--blue-bg); border-color: var(--blue-border); }
.ps-site .badge-green { color: var(--green); background: var(--green-bg); border-color: var(--green-border); }
.ps-site .badge-purple { color: #7c3aed; background: #f5f3ff; border-color: #ddd6fe; }
.ps-site .badge-amber { color: #b45309; background: #fffbeb; border-color: #fde68a; }

.ps-site .proj-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
}

.ps-site .pmeta {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.ps-site .pmeta:last-child {
  border-right: none;
}

.ps-site .pmeta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.ps-site .pmeta-value {
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.4;
}

.ps-site .view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 44px;
  transition: background 0.15s;
}

.ps-site .view-btn:hover {
  background: #333;
  text-decoration: none;
  color: var(--white);
}

.ps-site .case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.ps-site .cs {
  margin-bottom: 40px;
}

.ps-site .cs h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.01em;
}

.ps-site .cs p {
  font-size: 14px;
  color: var(--mid);
  margin: 0 0 12px;
  line-height: 1.75;
}

.ps-site .cs p:last-child {
  margin-bottom: 0;
}

.ps-site .cs strong {
  color: var(--dark);
}

.ps-site .steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-site .step {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}

.ps-site .step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 5px;
}

.ps-site .step p {
  font-size: 13px;
  color: var(--mid);
  margin: 0;
  line-height: 1.65;
}

.ps-site .deliverables {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ps-site .del {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.ps-site .del:last-child {
  border-bottom: none;
}

.ps-site .del-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: block;
  margin-bottom: 2px;
}

.ps-site .del-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.5;
}

.ps-site .takeaway {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 4px;
}

.ps-site .tk-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 7px;
}

.ps-site .takeaway p {
  font-size: 13px;
  color: #065f46;
  margin: 0;
  line-height: 1.65;
}

.ps-site .scard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.ps-site .scard h4 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 12px;
}

.ps-site .tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ps-site .tool-tag {
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 9px;
  color: var(--mid);
}

.ps-site .jd-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ps-site .jd-row {
  font-size: 13px;
  color: var(--mid);
  padding-left: 14px;
  position: relative;
}

.ps-site .jd-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* About */
.ps-site #about {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.ps-site .about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.ps-site .about-photo {
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  border-radius: 12px;
  aspect-ratio: 1;
}

.ps-site .about-content h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--black);
}

.ps-site .about-content p {
  font-size: 14px;
  color: var(--mid);
  margin: 0 0 14px;
  line-height: 1.75;
}

.ps-site .about-content strong {
  color: var(--dark);
}

.ps-site .skill-bars {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.ps-site .skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ps-site .skill-name {
  width: min(220px, 40%);
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  flex-shrink: 0;
}

.ps-site .skill-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.ps-site .skill-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
}

.ps-site .kw {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.ps-site .kw span {
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--mid);
}

/* CTA */
.ps-site .cta-block {
  background: var(--black);
  border-radius: 12px;
  padding: 52px 48px;
  text-align: center;
  margin: 72px 0 40px;
}

.ps-site .cta-block h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.ps-site .cta-block p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  margin: 0 0 28px;
}

.ps-site .cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ps-site .cta-btn-w {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--black);
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}

.ps-site .cta-btn-w:hover {
  background: #e0e7ff;
  text-decoration: none;
  color: var(--black);
}

.ps-site .cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s;
}

.ps-site .cta-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: #fff;
}

/* Footer */
.ps-site footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.ps-site footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .ps-site .case-body {
    grid-template-columns: 1fr;
  }

  .ps-site .proj-grid {
    grid-template-columns: 1fr;
  }

  .ps-site .pgcard-wide {
    display: block;
  }

  .ps-site .pgcard-wide .pgcard-thumb {
    height: 88px;
  }

  .ps-site .about-grid {
    grid-template-columns: 1fr;
  }

  .ps-site .proj-head {
    flex-direction: column;
  }

  .ps-site .proj-meta {
    grid-template-columns: 1fr;
  }

  .ps-site .pmeta {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .ps-site .pmeta:last-child {
    border-bottom: none;
  }
}

@media (max-width: 580px) {
  .ps-site .wrap {
    padding: 0 20px;
  }

  .ps-site nav ul li:not(:last-child) {
    display: none;
  }

  .ps-site .cta-block {
    padding: 40px 24px;
  }
}
