/* About page – timeline layout. Uses the color variables from melania-smyk.webflow.css */

.about-page {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 0 1rem;
  font-family: Poppins, sans-serif;
  font-weight: 300;
}

/* Webflow gives headings and paragraphs their own margins: start from zero on this page.
   (:where keeps this reset weaker than the class rules below, so their margins still apply) */
:where(.about-page) :is(h1, h2, h3, p) {
  margin: 0;
}

.about-page h1,
.about-page h2,
.about-page h3 {
  font-family: Poppins, sans-serif;
  color: var(--text-color);
}

/* Webflow sets a font on every <p> (PT Sans): use the site font here */
.about-page p {
  font-family: Poppins, sans-serif;
  font-weight: 300;
}

/* small mono labels: same look as "Selected projects" and the grey line on the home page */
.about-page .section-eyebrow {
  color: #6b6862;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "DM Mono", monospace;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.about-page .hero-meta {
  color: #6b6862;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "DM Mono", monospace;
  font-size: 0.7812rem;
  font-weight: 400;
  line-height: 1.6;
}

.about-page .hero-meta span {
  margin: 0 0.35em;
}

/* ---------- Highlight (max 1 per page, never on links) ---------- */
.text-highlight {
  background: linear-gradient(transparent 60%, var(--yellow-highlight) 60%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 2px;
}

/* ---------- Intro ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 30%;
  gap: 5%;
  align-items: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.about-intro__heading {
  /* fluid: 24px on a phone up to 34px on a desktop */
  font-size: clamp(1.5rem, 1.125rem + 1.6vw, 2.125rem);
  line-height: 1.5;
  font-weight: 500;
  margin: 0.5rem 0 1.25rem;
  text-wrap: pretty;
}

.about-intro__lead {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  max-width: 75%;
  margin-bottom: 0;
}

/* keeps the second sentence together, so the heading breaks between the two sentences */
.about-intro__unit { display: inline-block; }

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}

/* ---------- Timeline ---------- */
.about-path {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.path {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}

/* dashed line behind the dots */
.path::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.0625rem;
  border-top: 2px dashed rgba(51, 51, 51, 0.35);
}

.path__stop {
  position: relative;
  padding-right: 1.25rem;
}

.path__dot {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--text-color);
  /* the dot colour sits over an opaque page-coloured layer so the dashed line never shows through */
  background: linear-gradient(var(--dot, var(--main-background-color)), var(--dot, var(--main-background-color))), var(--main-background-color);
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.path__label {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--medium-grey-text);
  margin-bottom: 0.375rem;
}

.path__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.375rem;
}

.path__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  color: var(--medium-grey-text);
}

/* ---------- Tiles ---------- */
.about-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-tile {
  background: var(--tile);
  border-radius: 1rem;
  padding: 1.375rem 1.5rem;
}

.about-tile__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.about-tile__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Closing line ---------- */
.about-closing {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0;
}

.about-closing__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}

.about-closing__link:focus-visible {
  outline: 2px solid var(--focus-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Desktop: a bit more room under the fixed header ---------- */
@media (min-width: 62em) {
  .about-page {
    padding-top: 5rem;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 61.9375em) {
  .about-intro {
    grid-template-columns: 1fr 32%;
    gap: 4%;
  }
  /* vertical timeline: below 992px the timeline stands up instead of turning into columns */
  .path {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
    padding-left: 3.25rem;
  }
  .path::before {
    left: 1.0625rem;
    right: auto;
    top: 0;
    bottom: 0;
    border-top: 0;
    border-left: 2px dashed rgba(51, 51, 51, 0.35);
  }
  .path__stop { padding-right: 0; }
  .path__dot {
    position: absolute;
    left: -3.25rem;
    top: 0;
    margin: 0;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 47.9375em) {
  /* phones have no page padding of their own: use the shared side gutter */
  .about-page {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .about-intro__photo { order: -1; max-width: 75%; }

  /* text fills the column on phones: normal wrapping, no width cap */
  .about-intro__heading { text-wrap: wrap; }
  .about-intro__lead { max-width: none; }

  .about-tiles { grid-template-columns: 1fr; }
}
