
/* =============================
              ABOUT ME
============================== */

.about-page {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
}
/* ===================================
   ABOUT PAGE HEADER
=================================== */

.about-page-header {
  width: 100%;
  margin: 0 0 var(--space-48);

  padding: var(--space-24) 0 var(--space-32);

  text-align: center;

  border-top: 1px solid #315d82;
  border-bottom: 1px solid #315d82;
}


/* Small spaced text */

.about-header-eyebrow {
  margin: 0 0 var(--space-16);

  font-size: var(--font-10);
  font-weight: 400;

  letter-spacing: 6px;

  color: #315d82;
}


/* Main heading */

.about-header-title {
  margin: 0;

  font-size: clamp(var(--font-44), 4vw, var(--font-62));
  font-weight: 400;

  line-height: 1;
  letter-spacing: -2px;

  color: #111;
}


/* Blue italic ME */

.about-header-title span {
  color: #315d82;
  font-style: italic;
}


/* Subtitle */

.about-header-subtitle {
  max-width: 700px;

  margin: var(--space-16) auto 0;

  font-size: var(--font-12);
  font-weight: 400;

  line-height: 1.7;
  letter-spacing: 0.5px;

  color: #555;
}


/* ===================================
   MOBILE
=================================== */

@media (max-width: 700px) {

  .about-page-header {
    margin-bottom: var(--space-32);
    padding: var(--space-24) 0 var(--space-24);
  }

  .about-header-eyebrow {
    font-size: var(--font-10);
    letter-spacing: 3px;
  }

  .about-header-title {
    font-size: var(--font-44);
    letter-spacing: -1px;
  }

  .about-header-subtitle {
    width: 90%;
    font-size: var(--font-12);
  }

}
/* =========================================================
   ABOUT HERO
========================================================= */

.about-hero {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;

  gap: clamp(var(--space-64), 8vw, var(--space-128));

  padding: var(--space-80) 0 var(--space-128);
}

.section-kicker {
  margin: 0 0 var(--space-16);

  font-size: var(--font-16);
  font-weight: 400;

  letter-spacing: 2px;

  color: var(--dark-grey);
}

.section-kicker::after {
  content: "";

  display: block;

  width: 32px;
  height: 2px;

  margin-top: var(--space-8);

  background: var(--accent);
}

.about-copy h1 {
  margin: 0 0 var(--space-24);

  font-size: clamp(var(--font-44), 4vw, var(--font-52));
  font-weight: 300;

  letter-spacing: 4px;
  line-height: 1.08;

  color: var(--black);
}

.about-focus {
  display: flex;
  flex-wrap: wrap;

  gap: var(--space-8) var(--space-24);

  margin-bottom: var(--space-32);
}

.about-focus span {
  position: relative;

  font-size: var(--font-12);
  font-weight: 500;

  letter-spacing: 2px;

  color: var(--dark-grey);
}

.about-focus span:not(:last-child)::after {
  content: "";

  position: absolute;

  top: 50%;
  right: -16px;

  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: var(--accent);

  transform: translateY(-50%);
}

.about-intro {
  max-width: 680px;

  margin: 0 0 var(--space-16);

  font-size: var(--font-16);
  line-height: 1.75;

  color: var(--dark-grey);

  text-align: justify;
}

/* =========================================================
   ABOUT PHOTO
========================================================= */

.about-photo-wrap {
  position: relative;

  width: 100%;
  max-width: 470px;

  justify-self: end;
}

.about-photo-line {
  position: absolute;
  max-width: 430px;
  top: -15px;
  left: -48px;

  width: 1px;
  height: calc(100% + 30px);

  background: var(--accent);

  z-index: 2;
}

.about-photo {
  width: 100%;
  height: 450px;

  display: block;

  object-fit: cover;

  /* Straight rectangular image */
  clip-path: none;
}

/* =========================================================
   EXPERIENCE / EDUCATION
========================================================= */

.career-section {
  width: min(1180px, calc(100vw - 80px));

  margin-left: auto;
  margin-right: auto;

  padding-bottom: var(--space-128);
}

.career-heading {
  max-width: 760px;

  margin-bottom: var(--space-64);
}

.career-heading h2 {
  margin: 0 0 var(--space-16);

  font-size: clamp(var(--font-36), 3.8vw, var(--font-44));
  font-weight: 300;

  letter-spacing: 3px;
  line-height: 1.08;

  color: var(--black);
}

.career-heading > p:last-child {
  max-width: 650px;

  margin: 0;

  font-size: var(--font-14);
  line-height: 1.75;

  color: var(--grey);
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline {
  position: relative;

  padding-left: var(--space-80);
}

.timeline-track {
  position: absolute;

  top: 40px;
  bottom: 40px;
  left: 16px;

  width: 2px;

  background: var(--light-grey);

  overflow: hidden;

  z-index: 1;
}

.timeline-progress {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 0;

  background: var(--accent);

  transition: height 0.45s ease;
}

.timeline-entry {
  position: relative;

  display: block;

  margin-bottom: var(--space-48);

  scroll-margin-top: var(--space-128);
}

.timeline-marker {
  position: absolute;

  left: -70px;
  top: 43px;

  width: 13px;
  height: 13px;

  box-sizing: border-box;

  border: 1px solid var(--black);
  border-radius: 50%;

  background: var(--white);

  z-index: 3;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.timeline-entry.active .timeline-marker {
  background: var(--accent);
  border-color: var(--accent);

  transform: scale(1.15);
}

/* =========================================================
   TIMELINE CONTENT
========================================================= */

.timeline-entry-content {
  border-top: 1px solid var(--light-grey);

  transition: border-color 0.3s ease;
}

.timeline-entry.active .timeline-entry-content {
  border-top-color: var(--accent);
}

.timeline-header {
  width: 100%;

  display: grid;
  grid-template-columns: 1fr 55px;

  gap: var(--space-32);

  align-items: center;

  padding: var(--space-32) 0 var(--space-24);

  background: transparent;
  border: none;

  text-align: left;

  font-family: inherit;
  color: inherit;

  cursor: pointer;
}

.timeline-main {
  position: relative;
}

.timeline-main h3 {
  margin: 0 0 var(--space-8);

  font-size: clamp(var(--font-20), 1.5vw, var(--font-24));
  font-weight: 500;

  letter-spacing: 1.2px;
  line-height: 1.3;

  color: var(--black);
}

.timeline-meta {
  display: block;

  margin-bottom: var(--space-16);

  padding-right: var(--space-128);
}

.timeline-meta .timeline-company {
  font-size: var(--font-16);
  font-weight: 600;

  letter-spacing: 1.2px;
  line-height: 1.35;

  color: var(--black);
}

.timeline-meta .timeline-date {
  position: absolute;

  top: 0;
  right: 0;

  font-size: var(--font-14);
  font-weight: 500;

  letter-spacing: 1.2px;
  line-height: 1.4;

  color: var(--grey);

  text-align: right;
  white-space: nowrap;
}

.timeline-summary {
  max-width: 860px;

  margin: 0;

  font-size: var(--font-16);
  line-height: 1.7;

  color: var(--dark-grey);
}

/* =========================================================
   + / × BUTTON
========================================================= */

.timeline-action {
  display: flex;

  align-items: center;
  justify-content: center;
}

.timeline-expand-icon {
  width: 40px;
  height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: var(--font-30);
  font-weight: 300;
  line-height: 1;

  color: var(--black);

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.timeline-header:hover .timeline-expand-icon {
  color: var(--accent);

  transform: scale(1.08);
}

.timeline-entry.is-open .timeline-expand-icon {
  color: var(--accent);
}

/* =========================================================
   EXPANDED DETAILS
========================================================= */

.timeline-details {
  display: grid;

  grid-template-rows: 0fr;

  opacity: 0;

  transition:
    grid-template-rows 0.4s ease,
    opacity 0.3s ease;
}

.timeline-details-inner {
  overflow: hidden;
}

.timeline-details ul {
  margin: 0 var(--space-32) var(--space-32) 0;

  padding: var(--space-24) 0 0 var(--space-24);

  border-top: 1px solid var(--light-grey);
}

.timeline-details li {
  margin-bottom: var(--space-8);

  padding-left: var(--space-4);

  font-size: var(--font-18);
  line-height: 1.7;
  text-align: justify;

  color: var(--dark-grey);
}

.timeline-entry.is-open .timeline-details {
  grid-template-rows: 1fr;

  opacity: 1;
}

.timeline-entry.is-open .timeline-entry-content {
  border-top-color: var(--accent);
}

/* =========================================================
   ABOUT PAGE TABLET
========================================================= */

@media (max-width: 900px) {
  .about-hero,
  .career-section,
  .technical-profile {
    width: min(100% - 48px, 1180px);
  }

  .about-hero {
    grid-template-columns: 1fr;

    gap: var(--space-48);

    padding-top: var(--space-64);
  }

  .about-photo-wrap {
    justify-self: start;

    max-width: 560px;
  }

  .about-photo {
    height: 420px;
  }

  .timeline {
    padding-left: var(--space-64);
  }

  .timeline-track {
    left: 11px;
  }

  .timeline-marker {
    left: -59px;
  }

  .timeline-entry {
    grid-template-columns: 48px 1fr;
  }

  .timeline-header {
    gap: var(--space-16);
  }
}

/* =========================================================
   ABOUT PAGE MOBILE
========================================================= */

@media (max-width: 620px) {
  .about-hero,
  .career-section,
  .technical-profile {
    width: calc(100% - 36px);
  }

  .about-hero {
    padding: var(--space-48) 0 var(--space-80);
  }

  .about-copy h1 {
    margin: 0 0 var(--space-24);

    font-size: clamp(var(--font-52), 4.5vw, var(--font-62));
    font-weight: 400;

    letter-spacing: 2px;
    line-height: 1.05;

    color: var(--black);
  }

  .about-focus {
    flex-direction: column;

    gap: var(--space-8);
  }

  .about-focus span::after {
    display: none;
  }

  .about-photo {
    height: 340px;
  }

  .career-section {
    padding-bottom: var(--space-96);
  }

  .career-heading h2 {
    margin: 0 0 var(--space-16);

    font-size: clamp(var(--font-44), 4vw, var(--font-52));
    font-weight: 400;

    letter-spacing: 2px;
    line-height: 1.05;

    color: var(--black);
  }

  .timeline {
    position: relative;
    padding-left: var(--space-32);
  }

  .timeline-track {
    left: 0px;
  }

  .timeline-entry {
    position: relative;
    display: block;

    margin-bottom: var(--space-24);

    scroll-margin-top: var(--space-128);
  }

  .timeline-marker {
    left: -37px;

    width: 11px;
    height: 11px;
  }

  .timeline-header {
    grid-template-columns: 1fr 42px;

    gap: var(--space-16);

    padding: var(--space-24) 0;
  }

  .timeline-main h3 {
    font-size: var(--font-16);
  }

  .timeline-meta {
    padding-right: 0;
  }

  .timeline-meta .timeline-date {
    position: static;

    display: block;

    margin-top: var(--space-4);

    text-align: left;
  }
} /* closes @media (max-width: 620px) */

/* =========================
   SOFTWARE / KEY SKILLS
========================= */

.timeline-skills {
  display: flex;
  flex-direction: column;

  gap: var(--space-8);

  margin-top: var(--space-16);
}

.timeline-skill-row {
  display: grid;

  grid-template-columns: 115px 1fr;

  gap: var(--space-16);

  align-items: baseline;
}

.timeline-skill-label {
  font-size: var(--font-14);
  font-weight: 600;

  letter-spacing: 1.8px;

  color: var(--accent);
}

.timeline-skill-value {
  font-size: var(--font-16);
  font-weight: 400;

  letter-spacing: 0.3px;
  line-height: 1.6;

  color: var(--dark-grey);
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .timeline-progress,
  .timeline-marker,
  .timeline-details,
  .timeline-expand-icon,
  .timeline-entry-content {
    transition: none;
  }
}



/* ==================================================
   DESIGN PROJECTS HEADER — FLOAT IN
================================================== */

.projects-header {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s ease,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-header.header-visible {
  opacity: 1;
  transform: translateY(0);
}