/* About Me page. Colours, fonts and the Download CV button come from style.css */

/* ========== Back link ========== */
.back {
  position: absolute;
  top: 4vh;
  left: 5vw;
  z-index: 10;
  font-size: 14px;
  color: var(--muted);
  padding-top: 10px;
}
.back span { color: var(--gold); }
.back:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ========== Layout: photo | story, one screen tall ========== */
.about {
  height: 100vh;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: 5vw;
  align-items: center;
  padding: 11vh 5vw 4vh;
  overflow: hidden;
}

/* ========== Left: photo + facts ========== */
.about-photo {
  display: block;
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  object-position: left bottom;
  -webkit-mask: linear-gradient(#000 80%, transparent);
          mask: linear-gradient(#000 80%, transparent);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4vh 2vw;
  margin-top: 2.4vh;
}
.facts small {
  display: block;
  font-size: min(0.8vw, 1.5vh);
  letter-spacing: 0.2em;
  color: var(--muted);
}
.facts b {
  display: block;
  margin-top: 0.5vh;
  font-size: min(1.1vw, 2.1vh);
  line-height: 1.35;
  font-weight: 500;
  color: var(--white);
}
.facts i {
  display: block;
  margin-top: 0.4vh;
  font-style: normal;
  font-size: min(0.9vw, 1.7vh);
  color: var(--gold);
}

/* ========== Right: story ========== */
.about-title {
  margin-top: 1.6vh;
  font-size: min(3.1vw, 5.2vh);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}
.about-title em { font-style: normal; font-weight: 700; color: var(--burgundy-light); }

.bio { margin-top: 2.4vh; }
.bio p {
  font-size: min(1.05vw, 1.95vh);
  line-height: 1.6;
  color: #D9CDC0;
}
.bio p + p { margin-top: 1.3vh; }
.bio b { font-weight: 500; color: var(--gold); }

.skills-label { margin-top: 3vh; }

.chips { display: flex; flex-wrap: wrap; gap: 0.8vh 8px; margin-top: 1.4vh; }
.chips .break { flex-basis: 100%; height: 0; }

.chip,
.chip-btn {
  border-radius: 999px;
  font-size: min(0.95vw, 1.7vh);
  padding: 0.6vh 12px;
}

/* alternate pale gold / pale burgundy, same as the home tabs */
.chips .chip:nth-of-type(odd),
.contact .chip-btn:nth-child(odd)  { background: rgba(226, 177, 60, 0.12); border: 1px solid rgba(226, 177, 60, 0.35); }
.chips .chip:nth-of-type(even),
.contact .chip-btn:nth-child(even) { background: rgba(176, 58, 85, 0.20);  border: 1px solid rgba(176, 58, 85, 0.50); }

.contact { display: flex; gap: 12px; margin-top: 4vh; }
.chip-btn {
  border-radius: 12px;
  padding: 1.3vh 20px;
  font-size: min(1.05vw, 1.9vh);
  transition: transform 0.2s, border-color 0.2s;
}
.chip-btn:hover { transform: translateY(-2px); border-color: var(--gold); }

/* ========== Tablets & phones: stack, allow scrolling ========== */
@media (max-width: 900px) {
  .back { top: 20px; left: 20px; padding-top: 10px; }

  .about {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
    height: auto;
    overflow: visible;
    padding: 80px 20px 48px;
  }

  .about-photo { max-height: 340px; }
  .facts small { font-size: 11px; }
  .facts b { font-size: 15px; }
  .facts i { font-size: 13px; }

  .about-title { font-size: 34px; }
  .bio p { font-size: 16px; }
  .chip { font-size: 13px; padding: 6px 12px; }
  .chips { gap: 8px; }
  .contact { flex-wrap: wrap; }
  .chip-btn { font-size: 15px; padding: 12px 20px; }
}