/* Martin Wolfaardt profile */

.martin-profile-page {
  background: #0d0b09;
  color: var(--color-text, #f2ede6);
}

.martin-profile-page .navbar {
  background: rgba(13, 11, 9, 0.94);
}

.martin-profile {
  padding: calc(var(--nav-height, 72px) + 64px) 24px 88px;
  background: #0d0b09;
  border-bottom: 1px solid rgba(208, 138, 72, 0.16);
}

.martin-profile-inner,
.martin-projects-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.martin-eyebrow,
.project-status {
  margin: 0 0 12px;
  color: #8d9b7a;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.martin-profile h1 {
  margin: 0;
  color: #f6eee5;
  font-size: clamp(3rem, 7vw, 5.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.martin-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  margin-top: 48px;
}

.martin-photo {
  width: min(100%, 520px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(208, 138, 72, 0.38);
  border-radius: 6px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.36);
}

.martin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.martin-bio h2,
.martin-projects h2 {
  margin: 0 0 22px;
  color: #d08a48;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.martin-bio p {
  margin: 0 0 20px;
  color: rgba(246, 238, 229, 0.76);
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.8;
}

.martin-bio p:first-of-type {
  color: #f0dfcd;
  font-size: 1.22rem;
  line-height: 1.68;
}

.martin-practice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  padding: 16px 0;
  border-top: 1px solid rgba(141, 155, 122, 0.28);
  border-bottom: 1px solid rgba(141, 155, 122, 0.28);
  list-style: none;
}

.martin-practice li {
  padding: 0 14px;
  color: #cdd3c3;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  border-right: 1px solid rgba(141, 155, 122, 0.2);
}

.martin-practice li:first-child { padding-left: 0; }
.martin-practice li:last-child {
  padding-right: 0;
  border-right: 0;
}

.martin-projects {
  padding: 96px 24px 112px;
  background: #15120f;
}

.projects-intro {
  max-width: 700px;
  margin: 0 0 42px;
  color: rgba(246, 238, 229, 0.66);
  font-size: 1.05rem;
  line-height: 1.75;
}

.martin-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  overflow: hidden;
  background: #0f0d0b;
  border: 1px solid rgba(208, 138, 72, 0.24);
  border-radius: 6px;
}

.martin-project-image {
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #080706;
}

.martin-project-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.martin-project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 400ms ease;
}

.martin-project-card:hover .martin-project-image img {
  transform: scale(1.015);
}

.martin-project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 64px);
}

.martin-project-content h3 {
  margin: 0 0 16px;
  color: #f6eee5;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.project-summary {
  margin: 0;
  color: rgba(246, 238, 229, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
}

.project-facts-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 32px;
  border-top: 1px solid rgba(208, 138, 72, 0.2);
  border-bottom: 1px solid rgba(208, 138, 72, 0.2);
}

.project-facts-compact div {
  padding: 14px 14px 14px 0;
}

.project-facts-compact div:nth-child(odd) {
  border-right: 1px solid rgba(208, 138, 72, 0.16);
}

.project-facts-compact div:nth-child(even) { padding-left: 14px; }
.project-facts-compact div:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(208, 138, 72, 0.16);
}

.project-facts-compact dt {
  color: #8d9b7a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-facts-compact dd {
  margin: 5px 0 0;
  color: #e9dfd3;
  font-size: 0.9rem;
  line-height: 1.4;
}

.project-link {
  align-self: flex-start;
  min-width: 210px;
  text-align: center;
}

@media (max-width: 900px) {
  .martin-layout,
  .martin-project-card {
    grid-template-columns: 1fr;
  }

  .martin-layout { gap: 42px; }
  .martin-photo {
    width: min(100%, 560px);
    margin: 0 auto;
    aspect-ratio: 2 / 3;
  }
  .martin-bio { max-width: 720px; }
  .martin-project-image { min-height: 0; aspect-ratio: 1; }
}

@media (max-width: 820px) {
  .martin-profile-page .nav-links,
  .martin-profile-page .nav-actions {
    display: none !important;
  }

  .martin-profile-page .nav-toggle { display: flex !important; }
  .martin-profile-page .nav-container { justify-content: space-between; }
}

@media (max-width: 560px) {
  .martin-profile { padding: calc(var(--nav-height, 72px) + 42px) 20px 68px; }
  .martin-layout { margin-top: 32px; gap: 32px; }
  .martin-photo { aspect-ratio: 2 / 3; }
  .martin-bio p { font-size: 1rem; }
  .martin-bio p:first-of-type { font-size: 1.1rem; }
  .martin-practice li { padding: 0 8px; font-size: 0.69rem; }
  .martin-projects { padding: 72px 20px 88px; }
  .projects-intro { margin-bottom: 30px; font-size: 1rem; }
  .martin-project-image { aspect-ratio: 1; }
  .martin-project-content { padding: 32px 24px 36px; }
  .project-facts-compact { grid-template-columns: 1fr; }
  .project-facts-compact div,
  .project-facts-compact div:nth-child(even) { padding: 12px 0; }
  .project-facts-compact div:nth-child(odd) { border-right: 0; }
  .project-facts-compact div:not(:last-child) { border-bottom: 1px solid rgba(208, 138, 72, 0.16); }
  .project-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .martin-project-image img { transition: none; }
  .martin-project-card:hover .martin-project-image img { transform: none; }
}
