/* ============================================================
   portfolio.css — Quentin Parret
   Design sobre, pro, distinct de la DA DLVR
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── RESET & BASE ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #f7f6f4;
  --bg2:       #ffffff;
  --ink:       #111111;
  --ink2:      #444444;
  --ink3:      #888888;
  --ink4:      #bbbbbb;
  --rule:      #e0ddd8;
  --accent:    #1a1a1a;
  --tag-bg:    #efefed;
  --link:      #0047CC;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --max: 820px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ── NAV ───────────────────────────────────── */
.p-nav {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  position: sticky; top: 0;
  background: rgba(247, 246, 244, .96);
  backdrop-filter: blur(6px);
  z-index: 100;
}

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

.p-nav-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}

.p-nav-name span {
  font-weight: 300;
  color: var(--ink3);
}

.p-nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.p-nav-links a {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink3);
  text-decoration: none;
  padding: 5px 14px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.p-nav-links a:hover,
.p-nav-links a.on {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.p-back {
  font-size: 11px;
  color: var(--ink3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
  font-family: var(--mono);
  letter-spacing: .02em;
}

.p-back:hover { color: var(--ink); }

/* ── HERO ──────────────────────────────────── */
.p-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.p-hero-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--ink3);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.p-hero-name {
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 8px;
}

.p-hero-name strong {
  font-weight: 500;
}

.p-hero-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink3);
  margin-bottom: 28px;
}

.p-hero-bio {
  max-width: 520px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink2);
  margin-bottom: 32px;
}

.p-hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 36px;
}

.skill-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink2);
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 2px;
}

.p-hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.p-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .15s, color .15s;
  letter-spacing: .02em;
}

.p-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.p-btn-ghost {
  border-color: var(--rule);
  color: var(--ink2);
}

.p-btn-ghost:hover {
  background: var(--tag-bg);
  color: var(--ink);
  border-color: var(--ink4);
}

/* ── SECTIONS ──────────────────────────────── */
.p-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
}

.p-section:last-of-type { border-bottom: none; }

.p-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
}

.p-section-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink4);
  letter-spacing: .06em;
  flex-shrink: 0;
}

.p-section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── SERVICES GRID ─────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  margin-bottom: 48px;
}

.service-card {
  background: var(--bg2);
  padding: 24px 22px;
}

.service-icon {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink4);
  margin-bottom: 14px;
  line-height: 1;
}

.service-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: .01em;
}

.service-desc {
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.6;
}

/* ── WORK TABLE ────────────────────────────── */
.work-table { width: 100%; border-collapse: collapse; }

.work-table-head th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink3);
  font-family: var(--mono);
  padding: 0 0 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.work-table-head th:last-child { text-align: right; }

.work-table tbody tr {
  border-bottom: 1px solid var(--rule);
  transition: background .12s;
}

.work-table tbody tr:hover { background: var(--bg2); }
.work-table tbody tr:last-child { border-bottom: none; }

.work-table td {
  padding: 14px 0;
  vertical-align: middle;
}

.w-artist {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding-right: 16px;
  white-space: nowrap;
}

.w-title {
  font-size: 13px;
  color: var(--ink2);
}

.w-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .15s, color .15s;
}

.w-title a:hover {
  color: var(--link);
  border-color: var(--link);
}

.w-role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink3);
  letter-spacing: .04em;
  white-space: nowrap;
  padding: 0 16px;
}

.w-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink4);
  text-align: right;
  white-space: nowrap;
}

/* Category heading rows */
.work-cat-row td {
  padding: 28px 0 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-family: var(--mono);
  border-bottom: none !important;
}

.work-cat-row:first-child td { padding-top: 4px; }

/* ── VJ TAGS ───────────────────────────────── */
.vj-section { margin-top: 40px; }

.vj-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink3);
  font-family: var(--mono);
  margin-bottom: 14px;
}

.vj-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vj-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 2px;
  transition: background .12s, border-color .12s;
}

.vj-tag a {
  color: inherit;
  text-decoration: none;
}

.vj-tag:hover {
  background: var(--bg2);
  border-color: var(--ink4);
}

/* ── CONTACT ───────────────────────────────── */
.p-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.p-contact-intro {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 32px;
}

.p-contact-list { list-style: none; }

.p-contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.p-contact-list li:last-child { border-bottom: none; }

.p-c-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink4);
  min-width: 90px;
}

.p-c-val {
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}

a.p-c-val:hover { color: var(--link); }

.p-contact-aside {
  background: var(--bg2);
  border: 1px solid var(--rule);
  padding: 28px 24px;
}

.p-aside-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  font-family: var(--mono);
}

.p-aside-text {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── FOOTER ────────────────────────────────── */
.p-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.p-foot-left {
  font-size: 12px;
  color: var(--ink3);
}

.p-foot-left strong {
  font-weight: 500;
  color: var(--ink);
}

.p-foot-right {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink4);
  letter-spacing: .06em;
  text-align: right;
  line-height: 1.8;
}

.p-foot-right a {
  color: var(--ink3);
  text-decoration: none;
}

.p-foot-right a:hover { color: var(--ink); }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 640px) {
  .p-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .w-role { display: none; }
  .services-grid { grid-template-columns: 1fr; }
}
