/* ============================================
   PQExpert.io — style.css
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #0d0f14;
  color: #f0f2f5;
}
a { color: #4a7fc1; text-decoration: none; }
a:hover { color: #6a9fd8; }
img { max-width: 100%; display: block; }

/* --- Variables --- */
:root {
  --bg: #0d0f14;
  --surface: #161b25;
  --border: #2a3145;
  --accent: #4a7fc1;
  --accent-hover: #6a9fd8;
  --text: #f0f2f5;
  --text-muted: #8a9ab5;
  --verified: #3a9e6a;
  --indev: #c98a2a;
  --concept: #6a7a9a;
  --radius: 8px;
  --max-w: 1100px;
}

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 48px 0; } }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 16px; color: #c8d0df; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.9em; }
.text-muted { color: var(--text-muted); }
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  display: block;
}

/* --- Header & Nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 15, 20, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-container {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.nav-cta {
  background: var(--accent); color: #fff; padding: 8px 18px;
  border-radius: var(--radius); transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--accent-hover); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; align-items: center;
    justify-content: center; gap: 32px;
    transform: translateX(100%); transition: transform 0.3s ease; z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--text); font-size: 1.1rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; transition: 0.2s; cursor: pointer;
  border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge--verified { background: rgba(58,158,106,0.15); color: var(--verified); border: 1px solid rgba(58,158,106,0.3); }
.badge--indev    { background: rgba(201,138,42,0.15);  color: var(--indev);   border: 1px solid rgba(201,138,42,0.3); }
.badge--concept  { background: rgba(106,122,154,0.15); color: var(--concept); border: 1px solid rgba(106,122,154,0.3); }

/* --- Cards --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; } }

/* --- Tags --- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  background: rgba(74,127,193,0.1); border: 1px solid rgba(74,127,193,0.25);
  color: var(--accent); padding: 3px 10px; border-radius: 4px;
  font-size: 0.78rem; font-family: 'JetBrains Mono', monospace;
}

/* --- Hero --- */
.hero { padding: 100px 0 80px; border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
.hero-headshot { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); flex-shrink: 0; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin-bottom: 0; line-height: 1.7; }
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-headshot { width: 120px; height: 120px; }
  .hero { padding: 60px 0 48px; }
}

/* --- Proof Strip --- */
.proof-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
.proof-strip-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.proof-item { padding: 8px 32px; text-align: center; border-right: 1px solid var(--border); }
.proof-item:last-child { border-right: none; }
.proof-number { font-size: 1.5rem; font-weight: 700; color: var(--accent); display: block; }
.proof-label { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
@media (max-width: 600px) {
  .proof-strip-inner { flex-direction: column; }
  .proof-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; }
  .proof-item:last-child { border-bottom: none; }
}

/* --- Credential Strip --- */
.cred-strip {
  background: rgba(74,127,193,0.06); border: 1px solid rgba(74,127,193,0.2);
  border-radius: var(--radius); padding: 16px 24px; margin: 32px 0;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.cred-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.cred-item .check { color: var(--verified); font-weight: 700; }

/* --- Pillars --- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pillar { text-align: center; padding: 24px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pillar-icon { font-size: 1.8rem; margin-bottom: 10px; }
.pillar-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.pillar-desc { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pillars { grid-template-columns: repeat(2, 1fr); } }

/* --- Work Entry --- */
.work-entry { margin-bottom: 64px; }
.work-entry-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.work-entry h2 { margin-bottom: 4px; }
.work-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.work-bullets { list-style: none; padding: 0; margin: 16px 0; }
.work-bullets li { padding: 8px 0 8px 20px; position: relative; border-bottom: 1px solid rgba(42,49,69,0.5); font-size: 0.95rem; color: #c8d0df; line-height: 1.6; }
.work-bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.work-bullets li:last-child { border-bottom: none; }
.work-outcomes { background: rgba(58,158,106,0.07); border: 1px solid rgba(58,158,106,0.2); border-radius: var(--radius); padding: 16px 20px; margin-top: 20px; }
.work-outcomes p { color: #a8d4b8; font-size: 0.9rem; margin: 0; }

/* --- Capability --- */
.capability { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.capability:last-child { border-bottom: none; }
.capability-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.capability h3 { margin-bottom: 0; }

/* --- Table --- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; padding: 10px 16px; background: var(--surface); border-bottom: 2px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: #c8d0df; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* --- Writing --- */
.writing-entry { padding: 20px 0; border-bottom: 1px solid var(--border); }
.writing-entry:last-child { border-bottom: none; }
.writing-tag { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 6px; display: block; }
.writing-entry h3 { margin-bottom: 6px; font-size: 1.05rem; }
.writing-entry p { font-size: 0.9rem; margin-bottom: 10px; }

/* --- Form --- */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- CTA Block --- */
.cta-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; }
.cta-block h2 { margin-bottom: 12px; }
.cta-block p { color: var(--text-muted); max-width: 500px; margin: 0 auto 28px; }

/* --- Page Header --- */
.page-header { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0; }

/* --- Maturity Legend --- */
.maturity-legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0 40px; }

/* --- Footer --- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-wordmark { font-weight: 700; font-size: 1.05rem; }
.footer-tagline { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { font-size: 0.78rem; color: var(--text-muted); margin: 0; width: 100%; }
@media (max-width: 600px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

/* --- Grids --- */
.about-grid { display: grid; grid-template-columns: 1fr 240px; gap: 60px; align-items: start; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .cred-grid { grid-template-columns: 1fr; } }

/* --- Warn Block --- */
.warn-block { font-size: 0.82rem; color: var(--text-muted); padding: 12px; background: rgba(201,138,42,0.07); border: 1px solid rgba(201,138,42,0.2); border-radius: var(--radius); margin-top: 16px; }

/* =========================================================
   IDENTITY REVEAL COMPONENT
   ========================================================= */
.identity-layer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 32px 0;
  max-width: 680px;
}
.identity-primary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.identity-name-display {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.identity-subtitle {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.identity-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.identity-reveal-btn:hover,
.identity-reveal-btn.is-open {
  border-color: var(--accent);
  color: var(--accent);
}
.identity-reveal-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s;
}
.identity-reveal-btn.is-open svg.id-chevron {
  transform: rotate(180deg);
}
.identity-reveal-panel {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 20px 24px;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.identity-reveal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-style: italic;
}
.identity-fields {
  display: grid;
  gap: 10px;
}
.identity-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 0.85rem;
}
.identity-field-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.identity-field-val {
  color: var(--text-primary);
  font-size: 0.88rem;
}
.identity-orcid-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.identity-orcid-link:hover { text-decoration: underline; }
.identity-reveal-footer {
  margin: 16px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* =========================================================
   RESEARCH PROFILES STRIP
   ========================================================= */
.research-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.research-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}
.research-profile-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.research-profile-link svg { flex-shrink: 0; }

/* =========================================================
   STANDARDS CALLOUT (homepage)
   ========================================================= */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.standard-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.standard-check {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================================
   TIMELINE (work page improvement)
   ========================================================= */
.timeline-entry {
  position: relative;
  padding-left: 28px;
  padding-bottom: 32px;
  border-left: 2px solid var(--border);
}
.timeline-entry:last-child { border-left-color: transparent; }
.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
