/* ==========================================================================
   O podjetju — warm light surface: one large title, two short sentences, three quiet facts
   Shares the 12-column axis of the other sections (column 9 starts the narrow right column).
   ========================================================================== */

.about {
  --gap: clamp(0.75rem, 1.4vw, 1.25rem);
  position: relative;
  z-index: 1;
  background: var(--c-surface);
  color: var(--c-ink);
}

.about__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--section-pt) var(--gutter) var(--section-pb);
}

/* --------------------------------------------------------------------------
   Title (left) and the two sentences (right)
   -------------------------------------------------------------------------- */
.about__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(1.1rem, 2vw, 1.75rem);
  align-items: end;
}

.about__row .eyebrow {
  grid-column: 1 / -1;
}

.about__title {
  grid-column: 1 / 9;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 1rem + 6.2vw, 7.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.about__title span,
.about__title em {
  display: block;
}

.about__title em {
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--c-oak-ink);
}

.about__intro {
  grid-column: 9 / -1;
  display: grid;
  gap: 1rem;
  padding-bottom: 0.6rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgb(21 22 23 / 0.8);
}

/* --------------------------------------------------------------------------
   Facts: a restrained closing line, three items on the column axis
   -------------------------------------------------------------------------- */
.about__facts {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin: clamp(3rem, 6vw, 5.5rem) 0 0;
  padding-top: clamp(1.1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--c-ink-line);
}

.about__facts > div {
  grid-column: span 4;
}

.about__facts dt {
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(21 22 23 / 0.66);
}

.about__facts dd {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--c-ink);
}

.about :focus-visible {
  outline-color: var(--c-oak-ink);
}

/* --------------------------------------------------------------------------
   Reveal (slow; the "is-in" class is set by js/projects.js)
   -------------------------------------------------------------------------- */
.js .about__row > *,
.js .about__facts > div {
  opacity: 0;
  transform: translateY(0.75rem);
}

.js .about__row.is-in > *,
.js .about__facts.is-in > div {
  opacity: 1;
  transform: none;
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.4s var(--ease-out);
}

.js .about__row.is-in > :nth-child(2),
.js .about__facts.is-in > :nth-child(1) {
  transition-delay: 0.08s;
}

.js .about__row.is-in > :nth-child(3),
.js .about__facts.is-in > :nth-child(2) {
  transition-delay: 0.2s;
}

.js .about__facts.is-in > :nth-child(3) {
  transition-delay: 0.3s;
}

/* --------------------------------------------------------------------------
   Tablet / mobile
   -------------------------------------------------------------------------- */
@media (max-width: 959.98px) {
  .about__row {
    grid-template-columns: 1fr;
  }

  .about__title,
  .about__intro {
    grid-column: 1;
  }

  .about__intro {
    padding-bottom: 0;
  }
}

@media (max-width: 759.98px) {
  .about__facts {
    grid-template-columns: 1fr;
    row-gap: 1.1rem;
    margin-top: 2.5rem;
  }

  .about__facts > div {
    grid-column: 1;
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    align-items: baseline;
    column-gap: 1rem;
  }

  .about__facts dt {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .about__row > *,
  .js .about__facts > div {
    transform: none;
  }

  .js .about__row.is-in > *,
  .js .about__facts.is-in > div {
    transition-duration: 0.4s;
    transition-delay: 0s;
  }
}
