/* ==========================================================================
   DEVANT MEDIA — À propos page
   Page-specific blocks only. Header, page hero, section heads, experience
   rows (.trust), roles list (.founder__roles), CTA and footer come from
   styles.css.
   ========================================================================== */

/* 1. Who we are — second paragraph under the statement --------------------- */
.who__body {
  grid-column: 7 / span 6;
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-s);
}

/* 2. Founders — two mirrored editorial profiles ------------------------------ */
.founder-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  row-gap: var(--space-l);
  align-items: center;
  padding-block: var(--space-l);
  border-top: 1px solid var(--line);
}

.founder-block:last-child {
  border-bottom: 1px solid var(--line);
}

.founder-block__media {
  grid-column: 1 / span 5;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
  clip-path: polygon(0 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 0 100%);
}

.founder-block__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-block__body {
  grid-column: 7 / span 6;
  display: grid;
  gap: var(--space-m);
}

.founder-block--alt .founder-block__media {
  grid-column: 8 / span 5;
  order: 2;
}

.founder-block--alt .founder-block__body {
  grid-column: 1 / span 6;
}

.founder-block__name {
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.founder-block__intro {
  max-width: 46ch;
  line-height: 1.45;
}

/* Verified facts: value + caption rows. Fixed first column so captions align
   identically in both profiles, whatever the label length */
.founder-block__facts {
  border-top: 1px solid var(--line);
}

.founder-block__facts li {
  display: grid;
  grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
  column-gap: var(--space-m);
  align-items: baseline;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.founder-block__facts strong {
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.founder-block__facts strong sup {
  font-size: 0.6em;
  vertical-align: 0.5em;
  color: var(--pink);
}

.founder-block__facts span {
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* "Votre interlocuteur pour…" */
.founder-block__direct {
  display: flex;
  gap: 0.75em;
  align-items: baseline;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 44ch;
}

.founder-block__direct::before {
  content: "";
  flex: none;
  width: 0.6em;
  height: 0.6em;
  background: var(--pink);
  transform: translateY(-0.05em) rotate(45deg);
}

/* 3. Complementary expertise — statements + logo-derived diagram ------------ */
.synergy__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  row-gap: var(--space-l);
  align-items: center;
}

.synergy__text {
  grid-column: 1 / span 6;
  display: grid;
  gap: var(--space-m);
}

.synergy__lines {
  border-top: 1px solid var(--line);
}

.synergy__lines li {
  padding-block: clamp(1rem, 1.8vw, 1.4rem);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink-2);
}

.synergy__lines li em {
  font-style: normal;
  color: var(--ink);
}

.synergy__punch {
  margin-top: var(--space-s);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.synergy__text .t-body {
  max-width: 46ch;
}

/* The mark's square and diagonals; one discipline at each corner, the project at the crossing */
.synergy__figure {
  grid-column: 8 / span 5;
  position: relative;
  aspect-ratio: 1;
  max-width: 34rem;
  width: 100%;
  justify-self: end;
  color: var(--ink);
}

.synergy__figure svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.synergy__figure path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.5;
  opacity: 0.6;
}

.synergy__figure .accent {
  stroke: var(--pink);
  stroke-width: 0.9;
  opacity: 1;
}

.js .synergy__figure path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}

.js .synergy__figure path:nth-child(2) {
  transition-delay: 0.15s;
}

.js .synergy__figure path:nth-child(3) {
  transition-delay: 0.3s;
}

.js .synergy__figure path:nth-child(4) {
  transition-delay: 0.45s;
}

.js .synergy__figure.is-visible path {
  stroke-dashoffset: 0;
}

.synergy__tag {
  position: absolute;
  padding: 0.55em 0.75em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}

.synergy__tag--tl {
  top: 6%;
  left: 6%;
}

.synergy__tag--tr {
  top: 6%;
  right: 6%;
}

.synergy__tag--bl {
  bottom: 6%;
  left: 6%;
}

.synergy__tag--br {
  bottom: 6%;
  right: 6%;
}

.synergy__tag--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--pink);
  border-color: var(--pink);
}

/* 4. How we work — numbered principles in three columns --------------------- */
.how__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l) var(--space-m);
  border-top: 1px solid var(--line);
  padding-top: var(--space-m);
}

.how__item {
  display: grid;
  gap: 0.6rem;
}

.how__item span {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--pink);
}

.how__item h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.how__item p {
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.65;
  max-width: 34ch;
  text-wrap: pretty;
}

/* 5. France × Roumanie — one typographic line ------------------------------- */
.where__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  row-gap: var(--space-m);
  align-items: end;
}

.where__title {
  grid-column: 1 / span 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2em 0.35em;
  font-size: clamp(2.4rem, 6.4vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-stretch: 105%;
}

.where__title .strip__x {
  width: 0.5em;
  height: 0.5em;
  color: var(--pink);
}

.where__sub {
  grid-column: 1 / span 7;
  align-self: start;
}

.where__body {
  grid-column: 9 / span 4;
  align-self: start;
}

/* 6. Values — four words, four lines --------------------------------------- */
.values__list {
  grid-column: 3 / span 10;
  border-top: 1px solid var(--line);
}

.values__item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--space-m);
  align-items: baseline;
  padding-block: clamp(1rem, 1.8vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}

.values__word {
  font-size: clamp(1.8rem, 3.6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.values__word b {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-right: 1em;
  vertical-align: 0.9em;
}

.values__item p {
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.6;
  max-width: 44ch;
}

/* 7. Link to work — statement + two offset project frames ------------------ */
.worklink__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-m);
  row-gap: var(--space-l);
  align-items: center;
}

.worklink__text {
  grid-column: 1 / span 5;
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}

.worklink__shot {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
}

.worklink__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1s var(--ease-out);
}

.worklink__shot:hover img {
  transform: scale(1.04);
}

.worklink__shot--1 {
  grid-column: 6 / span 5;
  grid-row: 1;
  min-height: clamp(16rem, 28vw, 26rem);
}

.worklink__shot--2 {
  grid-column: 9 / span 4;
  grid-row: 1;
  z-index: 1;
  min-height: clamp(12rem, 20vw, 18rem);
  margin-top: clamp(8rem, 18vw, 16rem);
}

/* 8. Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .who__body {
    grid-column: 5 / span 8;
  }

  .founder-block__media,
  .founder-block--alt .founder-block__media {
    grid-column: 1 / span 5;
    order: 0;
  }

  .founder-block__body,
  .founder-block--alt .founder-block__body {
    grid-column: 6 / span 7;
  }

  .synergy__text {
    grid-column: 1 / -1;
  }

  .synergy__figure {
    grid-column: 1 / span 8;
    justify-self: start;
  }

  .how__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .where__title {
    grid-column: 1 / -1;
  }

  .where__sub,
  .where__body {
    grid-column: 1 / span 8;
  }

  .values__list {
    grid-column: 1 / -1;
  }

  .worklink__text {
    grid-column: 1 / -1;
  }

  .worklink__shot--1 {
    grid-column: 1 / span 8;
    grid-row: 2;
  }

  .worklink__shot--2 {
    grid-column: 7 / span 6;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  .who__body {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .founder-block {
    row-gap: var(--space-m);
  }

  .founder-block__media,
  .founder-block--alt .founder-block__media {
    grid-column: 1 / span 8;
    aspect-ratio: 1;
  }

  .founder-block__body,
  .founder-block--alt .founder-block__body {
    grid-column: 1 / -1;
  }

  .founder-block__facts li {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  }

  .synergy__figure {
    grid-column: 1 / -1;
    max-width: none;
  }

  .synergy__tag {
    font-size: 0.7rem;
    padding: 0.45em 0.55em;
  }

  .how__list {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .where__sub,
  .where__body {
    grid-column: 1 / -1;
  }

  .values__item {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .worklink__shot--1 {
    grid-column: 1 / span 10;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .worklink__shot--2 {
    grid-column: 5 / -1;
    grid-row: 3;
    margin-top: calc(-1 * var(--space-l));
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .founder-block__facts li {
    grid-template-columns: 1fr;
    row-gap: 0.2rem;
  }
}
