/* ── Flexing Data Portfolio — LIGHT theme (default) ──
   Matches the rest of the site's warm-light brand system — same tokens as
   assets/css/fd-shell.css (shared header) and labs/css/campus.css (Labs):
   cream/paper backgrounds, Ink Navy text, Brand Blue + Coral/Amber/Teal
   accents, soft layered shadows instead of glow-borders for depth.
   Same class names as portfolio-dark.css (the original look, kept for
   comparison via the nav's theme toggle / ?theme=dark) — only values differ,
   so partials.php markup works unchanged with either file.
   Sections: base · nav · hero · layout · about · verified achievements ·
   projects · skills · experience · education · footer · toast · editor UI ·
   talent wall (directory) · 404 · responsive · print.
   Cache-bust: bump PF_ASSET_V in pf-common.php after editing this file. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #FFFAF4;
  --surface:  #FFFFFF;
  --surface2: #FFF4E9;
  --blue:     #0A96C7;
  --blue-deep:#0A7BA6;
  --coral:    #FF9D83;
  --cream:    #FFF4E9;
  --teal:     #5AC7A6;
  --sky:      #62C1E0;
  --amber:    #FDCD75;
  --violet:   #BFB0FF;
  --text:     #18222F;
  --text2:    #44515F;
  --muted:    #6B7280;
  --border:   #ECE2D6;
  --radius:   14px;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --sh-1: 0 1px 2px rgba(24,34,47,.04), 0 2px 8px rgba(24,34,47,.06);
  --sh-2: 0 4px 14px -4px rgba(24,34,47,.12), 0 12px 30px -12px rgba(24,34,47,.14);
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── SCROLL PROGRESS ── */
.pf-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ── NAV (matches fd-shell.css .fdnav) ── */
.pf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255,250,244,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.pf-nav-logo { height: 32px; display: block; }
.pf-nav-logo-fallback { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.01em; align-items: center; }
.pf-nav-right { display: flex; align-items: center; gap: 12px; }
.pf-theme-toggle {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: #fff;
  white-space: nowrap;
}
.pf-theme-toggle:hover { color: var(--blue-deep); border-color: var(--blue); text-decoration: none; }
.pf-nav-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pf-nav-share svg { width: 15px; height: 15px; }
.pf-nav-share:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-1px); }
.pf-nav-cta {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 22px -10px rgba(10,150,199,.6);
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pf-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(10,150,199,.7); text-decoration: none; }
.pf-status {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.pf-status-live  { color: #1a9c74; border-color: rgba(90,199,166,0.45); background: rgba(90,199,166,0.12); }
.pf-status-draft { color: #b8860b; border-color: rgba(253,205,117,0.5); background: rgba(253,205,117,0.15); }

/* ── HERO ── */
.pf-hero {
  position: relative;
  padding: 96px 24px 72px;
  overflow: hidden;
}
.pf-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% -10%, rgba(10,150,199,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 10%, rgba(255,157,131,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(90,199,166,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.pf-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(24,34,47,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}
.pf-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
}

/* ── AVATAR + SPINNING RING ── */
.pf-avatar-wrap {
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  position: relative;
}
.pf-avatar-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), var(--teal), var(--coral), var(--blue));
  filter: blur(3px);
  opacity: 0.85;
  animation: pf-spin 7s linear infinite;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-avatar {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  display: block;
  box-shadow: var(--sh-1);
}
.pf-avatar-fallback {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--surface2);
  border: 3px solid var(--bg);
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 800;
  color: var(--blue);
  box-shadow: var(--sh-1);
}
.pf-photo-btn {
  position: absolute;
  right: 2px; bottom: 2px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--sh-1);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.pf-photo-btn:hover { background: var(--blue-deep); transform: scale(1.06); }
.pf-photo-btn svg { width: 19px; height: 19px; }
body.pf-editing .pf-photo-btn { display: inline-flex; }

/* ── HERO TEXT ── */
.pf-hero-text { flex: 1; min-width: 280px; }
.pf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.pf-tag svg { width: 14px; height: 14px; color: var(--teal); }
.pf-name {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 10px;
}
.pf-title {
  font-family: var(--font-head);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 16px;
}

/* ── ROLE CHIPS ── */
.pf-role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pf-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid rgba(10,150,199,0.25);
  color: var(--blue-deep);
  background: rgba(10,150,199,0.08);
}

.pf-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.pf-location svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── HERO ACTIONS (primary CTAs) ── */
.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pf-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.pf-btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(10,150,199,.6);
}
.pf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(10,150,199,.7); text-decoration: none; }
.pf-btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--sh-1);
}
.pf-btn-ghost:hover { border-color: var(--amber); color: #b8860b; transform: translateY(-2px); text-decoration: none; }

/* ── SOCIAL ICONS ── */
.pf-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: var(--sh-1);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pf-social-icon svg { width: 17px; height: 17px; }
.pf-social-icon:hover { color: #fff; border-color: var(--blue); background: var(--blue); transform: translateY(-2px); }
.pf-social-icon.pf-social-instagram:hover { background: #e1306c; border-color: #e1306c; }
.pf-social-icon.pf-social-youtube:hover { background: #ff0000; border-color: #ff0000; }
.pf-social-icon.pf-social-github:hover { background: #18222F; border-color: #18222F; }

/* ── LAYOUT ── */
.pf-container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.pf-section { padding: 72px 0; }
.pf-section-alt { background: var(--cream); }

.pf-kicker {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.pf-kicker-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a9c74;
}
.pf-kicker-verified svg { width: 14px; height: 14px; }
.pf-section-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

/* ── SCROLL REVEAL ── */
.pf-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.pf-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .pf-reveal { opacity: 1; transform: none; transition: none; }
  .pf-avatar-ring { animation: none; }
}
/* While editing, reveal everything immediately (sections must not hide). */
body.pf-editing .pf-reveal { opacity: 1; transform: none; }

/* ── CARD / ABOUT ── */
.pf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--sh-1);
}
.pf-about-text { color: var(--text2); white-space: pre-line; }

/* ── VERIFIED ACHIEVEMENTS ── */
.pf-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.pf-ach-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pf-ach-stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pf-ach-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(10,150,199,0.12);
  color: var(--blue);
  margin: 0 auto 10px;
}
.pf-ach-icon svg { width: 16px; height: 16px; }
.pf-ach-icon-amber { background: rgba(253,205,117,0.18); color: #b8860b; }
.pf-ach-icon-teal  { background: rgba(90,199,166,0.15);  color: #1a9c74; }
.pf-ach-icon-coral { background: rgba(255,157,131,0.15); color: #d76a4d; }
.pf-ach-val {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.1;
}
.pf-ach-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pf-quiz-bars { display: grid; gap: 14px; margin-bottom: 28px; }
.pf-quiz-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 6px;
}
.pf-quiz-bar-head strong { font-family: var(--font-head); color: #1a9c74; font-size: 16px; }
.pf-quiz-track {
  height: 8px;
  border-radius: 100px;
  background: var(--cream);
  overflow: hidden;
}
.pf-quiz-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.pf-badges-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.pf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pf-badge {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(253,205,117,0.18);
  color: #8a6412;
  border: 1px solid rgba(253,205,117,0.4);
}
.pf-verified-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  background: rgba(90,199,166,0.08);
  border: 1px dashed rgba(90,199,166,0.4);
  border-radius: 10px;
  padding: 12px 16px;
}
.pf-verified-note svg { width: 15px; height: 15px; color: #1a9c74; flex-shrink: 0; }

/* ── PROJECTS ── */
.pf-proj-grid { display: grid; gap: 18px; }
.pf-proj-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pf-proj-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pf-proj-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.pf-proj-desc { color: var(--text2); font-size: 14.5px; margin-bottom: 14px; white-space: pre-line; }
.pf-proj-tools { margin-bottom: 12px; }
.pf-proj-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-deep);
}

/* ── SKILLS ── */
.pf-skills-grid { display: grid; gap: 28px; }
.pf-skill-group { position: relative; }
.pf-skill-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pf-skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(10,150,199,0.12);
  color: var(--blue);
  flex-shrink: 0;
}
.pf-skill-icon svg { width: 16px; height: 16px; }
.pf-skill-icon-coral  { background: rgba(255,157,131,0.15); color: #d76a4d; }
.pf-skill-icon-teal   { background: rgba(90,199,166,0.15);  color: #1a9c74; }
.pf-skill-icon-violet { background: rgba(191,176,255,0.18); color: #7a68d6; }
.pf-skill-group-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(10,150,199,0.10);
  color: var(--blue-deep);
  border: 1px solid rgba(10,150,199,0.25);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.pf-tag-pill:hover { transform: translateY(-2px); background: rgba(10,150,199,0.18); }
.pf-tag-coral  { background: rgba(255,157,131,0.15); color: #c2542f;  border-color: rgba(255,157,131,0.35); }
.pf-tag-coral:hover { background: rgba(255,157,131,0.24); }
.pf-tag-teal   { background: rgba(90,199,166,0.15);  color: #1a9c74;   border-color: rgba(90,199,166,0.35); }
.pf-tag-teal:hover { background: rgba(90,199,166,0.24); }
.pf-tag-violet { background: rgba(191,176,255,0.18); color: #6a58c6; border-color: rgba(191,176,255,0.4); }
.pf-tag-violet:hover { background: rgba(191,176,255,0.28); }

/* ── EXPERIENCE (timeline) ── */
.pf-exp-list {
  position: relative;
  padding-left: 26px;
}
.pf-exp-list::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(10,150,199,0.12));
}
.pf-exp-item { position: relative; padding-bottom: 34px; }
.pf-exp-item:last-child { padding-bottom: 0; }
.pf-exp-dot {
  position: absolute;
  left: -26px; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(255,157,131,0.4);
}
.pf-exp-when {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: #b8860b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.pf-exp-dash { margin: 0 5px; color: var(--muted); }
.pf-exp-role {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.pf-exp-org { font-size: 14px; color: var(--blue-deep); font-weight: 600; margin-bottom: 8px; }
.pf-exp-desc { font-size: 14.5px; color: var(--text2); white-space: pre-line; }

/* ── EDUCATION ── */
.pf-edu-list { display: flex; flex-direction: column; gap: 14px; }
.pf-edu-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pf-edu-card:hover { transform: translateX(4px); box-shadow: var(--sh-2); }
.pf-edu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(10,150,199,0.12);
  color: var(--blue);
  flex-shrink: 0;
}
.pf-edu-icon svg { width: 19px; height: 19px; }
.pf-edu-details { flex: 1; }
.pf-edu-degree { font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: 15px; }
.pf-edu-inst   { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pf-edu-sep    { margin: 0 5px; }
.pf-edu-detail { font-size: 13px; color: var(--muted); margin-top: 5px; }
.pf-edu-detail:empty { display: none; }
body.pf-editing .pf-edu-detail:empty { display: block; }

/* ── FOOTER ── */
.pf-footer {
  text-align: center;
  padding: 64px 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.pf-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.pf-share-label { font-family: var(--font-head); font-weight: 600; color: var(--text); font-size: 14px; }
.pf-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pf-share-chip svg { width: 14px; height: 14px; }
.pf-share-chip:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); text-decoration: none; }
.pf-footer-cta { margin-bottom: 36px; }
.pf-footer-cta-text {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.pf-footer-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 10px 22px -10px rgba(10,150,199,.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pf-footer-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(10,150,199,.7); text-decoration: none; }
.pf-footer-brand { color: var(--blue-deep); font-weight: 700; }
.pf-footer-copy { margin-top: 10px; font-size: 12px; }
.pf-footer-links { margin-bottom: 8px; }

/* ── SHARE TOAST ── */
.pf-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--text);
  border: 1px solid var(--text);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 14px 34px -8px rgba(24,34,47,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 400;
}
.pf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ══ EDITOR UI (owner only — all of this is inert for visitors) ══ */

/* Empty optional sections: hidden until the owner enters edit mode. */
.pf-owner-empty { display: none; }
body.pf-editing .pf-owner-empty { display: block; }

/* Controls hidden outside edit mode. */
.pf-x, .pf-add, .pf-url-row { display: none; }
body.pf-editing .pf-x { display: inline-flex; }
body.pf-editing .pf-add { display: inline-flex; }
body.pf-editing .pf-url-row { display: flex; }

/* Editable affordance: dashed outline on hover/focus while editing. */
body.pf-editing [data-edit],
body.pf-editing [data-field],
body.pf-editing [data-text] {
  border-radius: 6px;
  outline: 1.5px dashed transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s var(--ease);
  cursor: text;
  min-width: 20px;
}
body.pf-editing [data-edit]:hover,  body.pf-editing [data-edit]:focus,
body.pf-editing [data-field]:hover, body.pf-editing [data-field]:focus,
body.pf-editing [data-text]:hover,  body.pf-editing [data-text]:focus {
  outline-color: rgba(10,150,199,0.55);
}
[contenteditable]:focus { outline-style: solid; }

/* Placeholders for empty editable fields (edit mode only). */
body.pf-editing [data-ph]:empty::before {
  content: attr(data-ph);
  color: var(--muted);
  opacity: 0.75;
  font-style: italic;
  pointer-events: none;
}

/* Remove (×) buttons */
.pf-x {
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: none;
  background: rgba(255,157,131,0.25);
  color: #c2542f;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.pf-x:hover { background: var(--coral); color: #fff; }
.pf-x-card {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  font-size: 16px;
  z-index: 2;
}

/* Add buttons */
.pf-add {
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px dashed rgba(10,150,199,0.4);
  background: rgba(10,150,199,0.06);
  color: var(--blue-deep);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.pf-add:hover { background: rgba(10,150,199,0.14); border-color: var(--blue); }
.pf-add-sub { margin-top: 10px; padding: 5px 12px; font-size: 12.5px; border-radius: 100px; }
.pf-add-inline { margin: 0 0 18px; padding: 5px 12px; font-size: 12.5px; border-radius: 100px; }

/* URL rows inside project cards */
.pf-url-row {
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--muted);
}
.pf-url-row svg { width: 14px; height: 14px; flex-shrink: 0; }
.pf-url-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
}

/* Coaching line for empty sections */
.pf-coach {
  font-size: 14px;
  color: #8a6412;
  background: rgba(253,205,117,0.12);
  border: 1px dashed rgba(253,205,117,0.5);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

/* Bottom edit bar — floating white toolbar */
.pf-editbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 90px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--border);
  box-shadow: var(--sh-2);
  backdrop-filter: blur(10px);
  z-index: 350;
  transition: transform 0.3s var(--ease);
  max-width: calc(100vw - 24px);
  flex-wrap: wrap;
  justify-content: center;
}
body.pf-editing .pf-editbar { transform: translate(-50%, 0); }
.pf-editbar-hint { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--blue-deep); }
.pf-editbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-ebtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.pf-ebtn svg { width: 14px; height: 14px; }
.pf-ebtn:hover { border-color: var(--blue); transform: translateY(-1px); }
.pf-ebtn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); border-color: var(--blue); color: #fff; }
.pf-ebtn-primary:hover { box-shadow: 0 10px 22px -10px rgba(10,150,199,.6); }
.pf-ebtn-quiet { background: transparent; box-shadow: none; }
.pf-ebtn[disabled] { opacity: 0.5; cursor: default; }

/* Links panel */
.pf-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24,34,47,0.45);
  z-index: 360;
}
.pf-links-panel {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px));
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  z-index: 370;
  box-shadow: 0 24px 60px -12px rgba(24,34,47,.28);
}
.pf-panel-title { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.pf-panel-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.pf-panel-sub code { background: var(--cream); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.pf-panel-field { display: block; margin-bottom: 13px; }
.pf-panel-field > span {
  display: block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}
.pf-panel-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s var(--ease);
}
.pf-panel-field input:focus { border-color: var(--blue); }
.pf-panel-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); margin: 4px 0 8px; cursor: pointer; }
.pf-panel-check input { accent-color: var(--blue); width: 16px; height: 16px; }
.pf-panel-hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.pf-slug-row {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
}
.pf-slug-row input {
  flex: 1;
  min-width: 80px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: var(--blue-deep) !important;
  font-weight: 600;
}
.pf-slug-hint { font-size: 12.5px; margin: 6px 0 4px; min-height: 17px; }
.pf-slug-hint.ok { color: #1a9c74; }
.pf-slug-hint.bad { color: #c2542f; }
.pf-panel-done { width: 100%; justify-content: center; margin-top: 12px; }

/* ══ TALENT WALL (directory /portfolio/) ══ */
.pfd-hero { text-align: center; padding: 72px 24px 40px; position: relative; overflow: hidden; }
.pfd-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}
.pfd-title em { font-style: normal; color: var(--blue-deep); }
.pfd-sub { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 auto 26px; }
.pfd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  padding-bottom: 72px;
}
.pfd-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  color: var(--text);
  box-shadow: var(--sh-1);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pfd-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); text-decoration: none; }
.pfd-card-photo, .pfd-card-fallback {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 2px solid var(--border);
  display: block;
}
.pfd-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
}
.pfd-card-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); }
.pfd-card-headline { font-size: 13px; color: var(--muted); margin: 4px 0 12px; min-height: 20px; }
.pfd-card-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.pfd-card-skill {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(10,150,199,0.10);
  color: var(--blue-deep);
  border: 1px solid rgba(10,150,199,0.25);
}
.pfd-card-xp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  color: #b8860b;
}
.pfd-empty { text-align: center; color: var(--muted); padding: 48px 0 72px; }

/* Create modal (reuses panel styles) */
.pfd-create-open { margin-top: 6px; }

/* ══ 404 ══ */
.pf-404 { text-align: center; padding: 110px 24px; }
.pf-404-code { font-family: var(--font-head); font-size: 64px; font-weight: 800; color: var(--blue); opacity: 0.4; }
.pf-404-title { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--text); margin: 8px 0 10px; }
.pf-404-text { color: var(--muted); margin-bottom: 28px; }

/* ── RESPONSIVE (tablet) ── */
@media (max-width: 880px) {
  .pf-hero-inner { gap: 36px; }
  .pf-section { padding: 56px 0; }
}

/* ── RESPONSIVE (mobile) ── */
@media (max-width: 600px) {
  /* Nav: allow wrapping instead of ever overflowing past the viewport edge
     (that overflow was what made the whole page rubber-band left/right).
     Also shrink the logo + every nav-right control so 3-4 items fit on one
     row down to ~340px before a wrap is even needed. */
  .pf-nav { padding: 10px 14px; flex-wrap: wrap; row-gap: 8px; }
  .pf-nav-logo { height: 24px; }
  .pf-nav-right { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .pf-theme-toggle { padding: 6px 10px; font-size: 11.5px; }
  .pf-nav-cta { padding: 7px 14px; font-size: 13px; }
  .pf-status { padding: 4px 10px; font-size: 11.5px; }
  .pf-nav-share { padding: 7px 10px; }
  .pf-nav-share-label { display: none; }
  .pf-hero { padding: 56px 16px 44px; }
  .pf-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .pf-avatar-wrap, .pf-avatar, .pf-avatar-fallback { width: 104px; height: 104px; }
  .pf-avatar-fallback { font-size: 38px; }
  .pf-avatar-ring { inset: -6px; }
  .pf-photo-btn { width: 34px; height: 34px; }
  .pf-container { padding: 0 16px; }
  .pf-section { padding: 44px 0; }
  .pf-card { padding: 22px; }
  .pf-hero-actions { flex-direction: column; align-items: stretch; }
  .pf-btn { justify-content: center; }
  /* Editbar: fixed 2x2 grid instead of organic flex-wrap, so the 4 buttons
     (Links / Save / Publish / Done) never split into an uneven 3+1 row. */
  .pf-editbar { bottom: 10px; padding: 10px; width: calc(100vw - 24px); gap: 8px; }
  .pf-editbar-hint { display: none; }
  .pf-editbar-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
  .pf-ebtn { justify-content: center; padding: 10px 8px; font-size: 12.5px; }
}

/* ── PRINT (page doubles as a clean PDF / resume attachment) ── */
@media print {
  .pf-progress,
  .pf-nav,
  .pf-hero-actions,
  .pf-socials,
  .pf-share-row,
  .pf-footer-cta,
  .pf-toast,
  .pf-editbar,
  .pf-links-panel,
  .pf-panel-backdrop,
  .pf-photo-btn,
  .pf-x, .pf-add, .pf-url-row,
  .pf-avatar-ring { display: none !important; }

  body { background: #fff; color: #111; }
  .pf-hero { padding: 32px 24px 24px; }
  .pf-hero-bg, .pf-hero-grid { display: none; }
  .pf-name { color: #111; }
  .pf-title, .pf-section-title, .pf-proj-title, .pf-exp-role,
  .pf-edu-degree, .pf-footer-cta-text { color: #111; }
  .pf-about-text, .pf-proj-desc, .pf-exp-desc { color: #222; }
  .pf-tag, .pf-kicker { color: #0A96C7; }
  .pf-kicker-verified { color: #1a9c74; }
  .pf-role-chip { color: #0A96C7; background: #e8f6fb; border-color: #b3dff0; }
  .pf-card, .pf-edu-card, .pf-ach-stat, .pf-proj-card,
  .pf-skill-icon, .pf-edu-icon, .pf-ach-icon {
    background: #fff !important;
    border-color: #ddd !important;
    box-shadow: none !important;
    color: #111;
  }
  .pf-edu-card { border-left-color: #0A96C7 !important; }
  .pf-tag-pill, .pf-badge, .pf-role-chip {
    background: #f3f3f3 !important;
    color: #444 !important;
    border-color: #ddd !important;
  }
  .pf-verified-note { color: #444; border-color: #bbb; background: #fafafa; }
  .pf-quiz-track { background: #eee; }
  .pf-exp-when { color: #b8860b; }
  .pf-exp-org { color: #0A96C7; }
  .pf-section { padding: 28px 0; }
  a { color: #111; text-decoration: underline; }
}
