/* ==========================================================================
   Company page (/etaireia): page-specific layout only.
   Components and tokens come from app.css.
   ========================================================================== */

/* Story --------------------------------------------------------------------- */
/* Our own photo is landscape with the electrician on the right: keep him and
   the whole lettering on his uniform in the portrait crop of the shape. */
.about-story__own > img {
  object-position: 100% 50%;
}
.about-story__actions {
  margin-top: var(--space-5);
}

/* The benefit cards continue the story block, as in the template (the section
   above already brings the spacing). */
.page--company .benefits--light {
  padding-top: 0;
}

/* Three-column band: commitments | photo | numbers --------------------------- */
/* Full-bleed like the template's "skills" band; the numbers replace its
   percentage bars. */
.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.about-band__col {
  min-width: 0;
  padding: var(--space-7) var(--gutter);
}
.about-band__col--dark {
  background: var(--navy-900);
}
.about-band__col--tint {
  background: var(--tint);
}
.about-band__title {
  margin-bottom: var(--space-4);
}
.about-band__list {
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
}
.about-band__list > li > strong {
  display: block;
}
.about-band__list > li > span {
  display: block;
  color: var(--c-text);
  font-size: .9375rem;
}
.about-band__action {
  display: flex;
  margin-top: var(--space-6);
}
.about-band__media {
  position: relative;
  min-height: 300px;
  background: var(--navy-800);
}
.about-band__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 50%;
}

.about-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
  margin-top: var(--space-5);
}
/* A short accent rule on a hairline: the echo of the template's bar tracks. */
.about-stats .stat {
  position: relative;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-2);
}
.about-stats .stat::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--blue-500);
}
.about-stats .stat__value {
  font-size: clamp(2.25rem, 1.75rem + 2.2vw, 3rem);
}
.about-stats .stat__label {
  color: var(--ink-700);
}

@media (min-width: 768px) {
  .about-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-band__col--dark {
    padding: var(--space-8) var(--space-5) var(--space-8) var(--space-6);
  }
  .about-band__col--tint {
    grid-column: 1 / -1;
    padding: var(--space-7) var(--space-6);
  }
  .about-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
  }
}
@media (min-width: 992px) {
  .about-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* The tallest column sets the height: the others centre their content. */
  .about-band__col {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .about-band__col--tint {
    grid-column: auto;
    padding: var(--space-8) var(--space-6) var(--space-8) var(--space-5);
  }
  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
  }
  /* A third of the viewport per column: the numbers follow its width. */
  .about-stats .stat__value {
    font-size: clamp(2rem, .6rem + 2.2vw, 3rem);
  }
}
@media (min-width: 1280px) {
  .about-band__col--dark {
    padding: var(--space-8) 50px var(--space-8) var(--space-8);
  }
  .about-band__col--tint {
    padding: var(--space-8) var(--space-8) var(--space-8) 50px;
  }
  .about-stats {
    gap: var(--space-6) var(--space-5);
  }
}
@media (min-width: 1440px) {
  .about-band__col--dark,
  .about-band__col--tint {
    padding-block: var(--space-9);
  }
}
@media (min-width: 1920px) {
  .about-band__col--dark {
    padding-right: var(--space-8);
    padding-left: 120px;
  }
  .about-band__col--tint {
    padding-right: 120px;
    padding-left: var(--space-8);
  }
  .about-stats {
    max-width: 420px;
  }
}

/* Values -------------------------------------------------------------------- */
.about-value {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: 30px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--bg-soft);
  transition: border-color .3s, box-shadow .3s;
}
.about-value:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-md);
}
/* The round bolt-badge look of the buttons, at icon size. */
.about-value__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--accent);
}
.about-value__body {
  min-width: 0;
}
.about-value__title {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-h4);
}
@media (min-width: 480px) {
  .about-value {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-5);
    padding: 30px;
  }
}
@media (min-width: 1280px) {
  .about-value {
    padding: 40px;
  }
}

/* Projects gallery ---------------------------------------------------------- */
/* Without JavaScript the chips cannot filter: all projects are simply listed. */
@media (scripting: none) {
  .about-projects__filter {
    display: none;
  }
}
/* Cards are anchor targets (/etaireia#<slug>). The page-wide scroll-padding
   already clears the sticky header; this adds a little air above the card. */
.about-projects .card {
  scroll-margin-top: var(--space-4);
}
.about-projects .card:target {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--tint), var(--shadow-md);
}

.about-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 740px;
  margin-inline: auto;
  padding: var(--space-6) var(--space-4);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-card);
  background: var(--bg-soft);
  text-align: center;
}
.about-empty__icon {
  display: flex;
  margin-bottom: var(--space-4);
  color: var(--blue-500);
}
.about-empty .cluster {
  margin-top: var(--space-5);
}
