/* ============================================================
   ABOUT.CSS — About page styles
   Page Header · Intro · Stats · Cards · Skills · Languages
   Traits · Contact Strip
   ============================================================ */

/* ── PAGE HEADER ─────────────────────────────────────────── */
#page-header {
  position: relative;
  min-height: 42vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
}

.ph-bg {
  position: absolute;
  inset: 0;
  background: var(--sage);
}

.ph-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  clip-path: polygon(55% 0, 100% 0, 100% 100%, 40% 100%);
}

/* Decorative circles */
.dc {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dc1 {
  width: 320px;
  height: 320px;
  top: -90px;
  left: -90px;
  border: 55px solid var(--sage-light);
  opacity: 0.4;
  animation: growIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.dc2 {
  width: 160px;
  height: 160px;
  bottom: -40px;
  right: 18%;
  border: 35px solid rgba(255, 255, 255, 0.12);
  animation: growIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

/* Page header content */
.ph-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 7rem var(--pad-x) 0;
  animation: slideUpSm 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s both;
}

.ph-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.4rem;
}

.ph-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
}

.ph-title span {
  opacity: 0.85;
}

.ph-divider {
  width: 60px;
  height: 4px;
  background: var(--sage-light);
  margin-top: 1.5rem;
}

/* ── MAIN CONTENT ────────────────────────────────────────── */
.main {
  padding: 5rem var(--pad-x);
}

/* ── INTRO ROW ───────────────────────────────────────────── */
.intro-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.intro-photo {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-wrap {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-wrap .fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--sage) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  color: var(--white);
}

.photo-wrap::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 70%;
  height: 70%;
  border: 4px solid var(--sage-light);
  z-index: -1;
}

/* Bio text */
.about-s-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage-text);
  margin-bottom: 0.4rem;
}

.about-s-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 1.5rem;
}

.bio p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--navy-deep);
  opacity: 0.82;
}

.bio p + p {
  margin-top: 1rem;
}

/* ── STAT BOXES ──────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-box {
  background: var(--navy-deep);
  padding: 1.4rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--sage-light);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: #a9c6b6;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.3rem;
}

/* ── DIVIDERS ────────────────────────────────────────────── */
.section-div {
  height: 1px;
  background: rgba(90, 115, 105, 0.2);
  margin: 0 0 4rem;
}

.section-header {
  margin-bottom: 2rem;
}

/* ── INFO CARDS ──────────────────────────────────────────── */
.cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.info-card {
  background: var(--white);
  padding: 2rem 2rem 2.2rem;
  border-left: 5px solid var(--sage);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(43, 77, 106, 0.1);
}

.info-card:nth-child(2) { border-left-color: var(--teal-dark); }
.info-card:nth-child(3) { border-left-color: var(--navy); }
.info-card:nth-child(4) { border-left-color: var(--navy-deep); }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card:nth-child(1) .card-icon { background: var(--sage); }
.info-card:nth-child(2) .card-icon { background: var(--teal-dark); }
.info-card:nth-child(3) .card-icon { background: var(--navy); }
.info-card:nth-child(4) .card-icon { background: var(--navy-deep); }

.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
  margin-bottom: 1.1rem;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--navy-deep);
  opacity: 0.8;
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.card-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--sage-text);
  font-size: 0.65rem;
  top: 0.15em;
}

.card-list li strong {
  font-weight: 600;
  opacity: 1;
}

.card-list li span {
  opacity: 0.85;
  font-size: 0.82rem;
}


/* ── BACKGROUND: EDUCATION + TIMELINE ────────────────────── */
.bg-block { margin-bottom: 4rem; }

.bg-sub {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.bg-sub + .bg-sub,
.edu-grid + .bg-sub { margin-top: 3.2rem; }

.bg-sub-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.bg-sub-icon.is-edu  { background: var(--sage); }
.bg-sub-icon.is-work { background: var(--teal-dark); }

.bg-sub-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bg-sub-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.edu-card {
  background: var(--white);
  padding: 1.5rem 1.6rem 1.6rem;
  border-top: 3px solid var(--sage);
  transition: transform 0.2s, box-shadow 0.2s;
}

.edu-card:nth-child(2) { border-top-color: var(--navy); }

.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(43, 77, 106, 0.1);
}

.edu-school {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
}

.edu-prog {
  font-size: 0.88rem;
  color: var(--navy-deep);
  opacity: 0.85;
  margin: 0.3rem 0 0.9rem;
  line-height: 1.5;
}

.edu-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  color: var(--navy-deep);
  background: rgba(55, 79, 89, 0.09);
}

.edu-status.is-now {
  color: var(--white);
  background: var(--sage);
}

/* Work timeline */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 2.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  background: linear-gradient(var(--sage), var(--teal-dark));
  opacity: 0.4;
}

.tl-item {
  position: relative;
  background: var(--white);
  padding: 1.4rem 1.7rem 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tl-item:last-child { margin-bottom: 0; }

.tl-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(43, 77, 106, 0.1);
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -2.25rem;
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--off-white);
  border: 3px solid var(--sage);
}

.tl-item:nth-child(2)::before { border-color: var(--sage-light); }
.tl-item:nth-child(3)::before { border-color: var(--navy); }
.tl-item:nth-child(4)::before { border-color: var(--teal-dark); }
.tl-item:nth-child(5)::before { border-color: var(--navy-deep); }

.tl-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.tl-org {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy-deep);
}

.tl-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage-text);
  white-space: nowrap;
}

.tl-role {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-deep);
  opacity: 0.85;
  margin-top: 0.15rem;
}

.tl-desc {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--navy-deep);
  opacity: 0.85;
  margin-top: 0.7rem;
  max-width: 74ch;
}

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-section {
  margin-bottom: 4rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-group {
  background: var(--white);
  padding: 1.8rem 2rem;
}

.sg-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sage);
}

.sg-title--teal    { border-bottom-color: var(--teal-dark); }
.sg-title--navy    { border-bottom-color: var(--navy); }
.sg-title--navy-d  { border-bottom-color: var(--navy-deep); }

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--navy-deep);
  opacity: 0.82;
}

.skill-track {
  height: 5px;
  background: rgba(90, 115, 105, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(to right, var(--sage), var(--sage-light));
  border-radius: 3px;
  transform-origin: left;
  animation: fillBar 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s both;
}

/* ── LANGUAGES ───────────────────────────────────────────── */
.lang-section {
  margin-bottom: 4rem;
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.lang-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.3rem;
  background: var(--navy-deep);
  color: var(--white);
}

.lang-chip span {
  font-weight: 400;
  opacity: 0.82;
  font-size: 0.78rem;
  margin-left: 0.4rem;
}

/* ── TRAITS ──────────────────────────────────────────────── */
.traits-section {
  margin-bottom: 4rem;
}

.traits-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.trait {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy-deep);
  opacity: 0.8;
  background: var(--white);
  padding: 0.5rem 1rem;
}

.trait-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-light);
  flex-shrink: 0;
}

/* ── CONTACT STRIP ───────────────────────────────────────── */
.contact-strip {
  background: var(--teal-dark);
  padding: 2.5rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-strip h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--white);
}

.contact-strip p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.3rem;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.c-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.82;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.c-link:hover {
  opacity: 1;
}

.c-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}


/* ── CV SECTION ──────────────────────────────────────────── */
.cv-section {
  margin-bottom: 4rem;
}

.cv-viewer {
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(43, 77, 106, 0.08);
}

.cv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--navy-deep);
  flex-wrap: wrap;
}

.cv-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.btn-dl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--sage-text);   /* 6.5:1 with white text */
  padding: 0.55rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-dl:hover {
  background: var(--navy-deep);
}

.btn-dl svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.cv-embed-wrap {
  position: relative;
}

.cv-frame {
  display: block;
  width: 100%;
  height: 780px;
  border: none;
}

.cv-fallback {
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  color: var(--navy-deep);
  opacity: 0.85;
  background: var(--off-white);
  border-top: 1px solid rgba(90, 115, 105, 0.15);
}

.cv-fallback a {
  color: #43584f;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── RESPONSIVE: TABLET (≤900px) ────────────────────────── */
@media (max-width: 900px) {

  #page-header {
    min-height: 32vh;
  }

  .ph-content {
    padding: 6rem var(--pad-x-md) 0;
  }

  .main {
    padding: 4rem var(--pad-x-md);
  }

  /* Intro: photo on top, bio below */
  .intro-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .intro-photo {
    order: -1;
    justify-content: flex-start;
  }

  /* Square crop on mobile */
  .photo-wrap {
    max-width: 180px;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
  }

  .photo-wrap .fallback {
    font-size: 4rem;
  }

  .photo-wrap::before {
    display: none;
  }

  /* Stats 2x2 */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }

  /* Cards stack */
  .cards-row {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .timeline { padding-left: 1.75rem; }
  .tl-item::before { left: -1.75rem; }
  .tl-item { padding: 1.2rem 1.25rem 1.3rem; }

  /* Skills stack */
  .skill-grid {
    grid-template-columns: 1fr;
  }

  /* CV viewer */
  .cv-frame {
    height: 600px;
  }

  /* Contact strip stack */
  .contact-strip {
    padding: 2rem var(--pad-x-md);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  /* Smaller decorative circle */
  .dc1 {
    width: 200px;
    height: 200px;
    border-width: 36px;
    top: -55px;
    left: -55px;
  }

  .dc2 { display: none; }

  .section-div {
    margin: 0 0 3rem;
  }
}

/* ── RESPONSIVE: MOBILE (≤600px) ────────────────────────── */
@media (max-width: 600px) {

  #page-header {
    min-height: 28vh;
  }

  .ph-title {
    font-size: clamp(2.6rem, 11vw, 3.8rem);
  }

  .bio p {
    font-size: 0.95rem;
  }

  .stats-row {
    gap: 0.75rem;
  }

  .stat-num {
    font-size: 1.7rem;
  }

  .skill-meta {
    font-size: 0.76rem;
  }

  .lang-chips {
    gap: 0.6rem;
  }

  .cv-frame {
    height: 460px;
  }

  .cv-toolbar {
    padding: 0.9rem 1.2rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .traits-row {
    gap: 0.5rem;
  }

  .trait {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .card-list li {
    font-size: 0.85rem;
  }

  .info-card {
    padding: 1.5rem 1.5rem 1.8rem;
  }

  .skill-group {
    padding: 1.4rem 1.5rem;
  }
}

/* ── RESPONSIVE: SMALL MOBILE (≤400px) ──────────────────── */
@media (max-width: 400px) {

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .about-s-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
}
