/* ===== Contact / Footer ===== */
#contact { padding: var(--s7) 0 var(--s8); border-top: 1px solid var(--line) }

.footer-inner { display:grid; grid-template-columns:1.4fr .6fr; gap:var(--grid-gap) }
@media (max-width:860px){ .footer-inner{ grid-template-columns:1fr } }

.contact-head h2 { font-family: var(--font-head); font-size: var(--h2); margin: 0 0 6px }
.contact-head .lead { margin: 0 0 var(--s4) }

.contact-info { margin: 0 0 var(--s4) }
.contact-list { display: flex; flex-wrap: wrap; gap: 10px }
.contact-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border:1px solid var(--line); border-radius:999px;
  background: var(--bg-elev); color:var(--ink); font-weight:600;
  transition:.2s transform,.2s box-shadow,.2s background;
}
.contact-chip:hover{ transform:translateY(-1px); box-shadow:var(--shadow-1); background:rgba(0,180,131,.06) }
.contact-chip .icon{ inline-size:18px; block-size:18px; margin:0; border:0; background:transparent }

.contact-form{ display:grid; gap:12px }
.contact-form input,
.contact-form textarea{
  width:100%; padding:12px 14px; border-radius:var(--radius-md);
  border:1px solid var(--line); background:var(--bg-elev); color:var(--ink);
  font-size:15px; line-height:1.4; transition:border .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus{ border-color:var(--green); box-shadow:0 0 0 2px rgba(0,180,131,.18); outline:none }
.contact-form .btn{ width:100% }

/* Company Info */
.company-info h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 var(--s3);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.company-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

@media (max-width: 860px) {
  .company-info-list {
    grid-template-columns: 1fr;
  }
}

.company-info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-info-list .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.company-info-list .value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.footer-legal{ margin-top: var(--s5); text-align:center }
.footer-legal a{ color:var(--green); font-weight:600; text-decoration:none }
.footer-legal a:hover{ text-decoration:underline }

/* Portrait overlay & badge */
.portrait-wrap { position: relative; }
.profile-badge-btn{
  position:absolute; top:10px; right:10px;
  display:inline-grid; place-items:center;
  width:36px; height:36px; border-radius:999px;
  background:var(--bg-elev,#fff);
  color:var(--green,#00b483);
  border:1px solid var(--line,#d4e9df);
  box-shadow:var(--shadow-1, 0 6px 24px rgba(0,0,0,.06));
  cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .2s ease;
  z-index: 20;
}
.profile-badge-btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow-2, 0 12px 40px rgba(0,0,0,.12)); }
.profile-badge-btn:focus{ outline:2px solid color-mix(in oklab, var(--green,#00b483) 40%, transparent); outline-offset:2px }
.profile-badge-btn .icon-close{ display:none; }
.profile-badge-btn[aria-expanded="true"] .icon-info{ display:none; }
.profile-badge-btn[aria-expanded="true"] .icon-close{ display:block; }

.profile-overlay{
  position:absolute; inset:-8px; z-index:5;
  background:#fff;
  border:1px solid var(--line,#d4e9df);
  border-radius:inherit;
  box-shadow:var(--shadow-2, 0 12px 40px rgba(0,0,0,.12));
  display:none;
  overflow:hidden;
}
.profile-overlay.is-open{ display:block; animation:pp-fade .18s ease-out; }

@keyframes pp-fade{
  from{ opacity:0; transform:scale(.992); }
  to{ opacity:1; transform:scale(1); }
}

.pp-inner{
  padding:clamp(16px, 2.2vw, 24px);
  display:flex; flex-direction:column; gap:12px;
  height:100%;
}

.pp-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.pp-title{ font-weight:800; font-family:var(--font-head,"Manrope","Inter",sans-serif); font-size:1.1rem; }
.pp-sub{ font-size:12px; color:var(--muted,#517364) }
.pp-lead{ font-size:14px; margin:2px 0 8px; color:var(--slate,#135443) }
.pp-tags{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px }
.pill{ display:inline-flex; gap:6px; align-items:center; padding:4px 10px; border:1px solid var(--line); border-radius:999px; font-size:12px; color:var(--muted) }
.pp-read-more{ width:100%; text-align:center; margin-top:4px }

.pp-skills{ display:grid; gap:6px; }
.pp-skill{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid var(--line,#d4e9df); border-radius:10px; background:var(--bg-elev,#fff) }
.pp-skill .name{ font-weight:600; font-size:13px }
.pips{ display:inline-flex; gap:6px }
.pip{ width:10px; height:10px; border-radius:50%; border:1.5px solid var(--line,#d4e9df); background:transparent; display:inline-block }
.pip.filled{ background:var(--green,#00b483); border-color:transparent }

/* Footer portrait sizing */
#contact .portrait-card { padding:0; background:transparent; border:0; box-shadow:none; display:flex; }
#contact .portrait-card .portrait-wrap {
  border:1px solid var(--line); background:var(--bg-elev);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-1); overflow: hidden; width:100%;
}
#contact .portrait-card .portrait {
  width:100%; height:100%; object-fit:cover; display:block; aspect-ratio:4 / 5;
}
@media (min-width:861px){ #contact .portrait-card .portrait { aspect-ratio:auto; } }
