/* Final editorial layout for the About and References sections. */
.about {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  column-gap: clamp(56px, 8vw, 124px);
  row-gap: 56px;
  align-items: start;
  margin-top: 88px;
  padding-block: 64px 88px;
  border-top: 1px solid var(--line);
}

.about-heading h2 {
  max-width: 17ch;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.055em;
  color: var(--heading);
  text-wrap: balance;
}

.about-story {
  max-width: 720px;
  padding-top: 2px;
}

.about-story p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.8;
}

.about-story p:first-child {
  color: var(--ink);
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.65;
  letter-spacing: -.02em;
}

.about-story p + p { margin-top: 24px; }

.about-profile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: 34px 36px 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.about-profile .eyebrow { margin-bottom: 18px; }

.about-profile__intro > p:last-child {
  max-width: 27ch;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.03em;
}

.about-profile__group {
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.about-profile__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-profile__group li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.65;
}

.about-profile__group li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.about-profile__group li + li { margin-top: 12px; }

.references {
  padding-block: 72px 96px;
  border-top: 1px solid var(--line);
}

.references-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
  margin-bottom: 44px;
}

.references-heading h2 {
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.055em;
  color: var(--heading);
  text-wrap: balance;
}

.references-heading > p {
  justify-self: end;
  max-width: none;
  color: var(--muted);
  font-family: "Manrope", "Instrument Sans", sans-serif;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
}

.references-heading > p::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--accent);
}

.reference-slider { min-width: 0; }

.reference-slider__viewport {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reference-slider__viewport::-webkit-scrollbar { display: none; }

.reference-slider__viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
}

.references-grid {
  display: flex;
  gap: 24px;
  padding-right: 0;
}

.reference-card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 24px) / 2);
  min-height: 310px;
  flex-direction: column;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  scroll-snap-align: start;
}

.reference-card__label {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reference-card__mark {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: .65;
}

.reference-card blockquote {
  max-width: 25ch;
  margin: 40px 0 44px;
  color: var(--heading);
  font-family: var(--display);
  font-size: clamp(24px, 2.25vw, 34px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -.04em;
}

.reference-card footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.reference-card__avatar {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: hidden;
  border-radius: 50%;
}

.reference-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-card__avatar--simon img {
  position: absolute;
  top: -26%;
  left: -25%;
  width: 504%;
  max-width: none;
  height: auto;
}

.reference-card__avatar--karolina img {
  position: absolute;
  top: -27.2%;
  left: -18.7%;
  width: 136.6%;
  max-width: none;
  height: auto;
}

.reference-card__author-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.reference-card footer strong {
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 600;
}

.reference-card__author-copy > span {
  color: var(--muted);
  font-size: var(--text-label);
}

.reference-card.is-placeholder {
  border-style: dashed;
  background: transparent;
  opacity: 1;
}

.reference-card.is-placeholder .reference-card__label,
.reference-card.is-placeholder .reference-card__mark,
.reference-card.is-placeholder blockquote { opacity: .58; }

.reference-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  margin: 24px auto 0;
}

.reference-slider__controls button {
  display: grid;
  place-items: center;
  width: 72px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.reference-slider__controls button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgb(16 6 12 / 24%);
}
.reference-slider__controls button:disabled { cursor: default; opacity: .32; }
.reference-slider__controls button:disabled:hover { opacity: .72; }
.reference-slider__controls .action-arrow { width: 28px; height: 28px; }

@media (max-width: 1000px) {
  .about {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .about-heading h2 { max-width: 22ch; }
  .about-story { max-width: 74ch; }
  .about-profile { grid-template-columns: 1fr 1fr; }
  .about-profile__intro { grid-column: 1 / -1; }
  .about-profile__intro > p:last-child { max-width: 45ch; }
  .about-profile__group:first-of-type { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  .about {
    margin-top: 56px;
    padding-block: 40px 64px;
    row-gap: 32px;
  }

  .about-heading h2,
  .references-heading h2 { font-size: 34px; }

  .about-story p:first-child { font-size: 18px; }

  .about-profile {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px 24px 28px;
  }

  .about-profile__intro { grid-column: auto; }
  .about-profile__group { padding: 28px 0 0; border-top: 1px solid var(--line); border-left: 0; }

  .references { padding-block: 52px 72px; }
  .references-heading { grid-template-columns: 1fr; }
  .references-heading { gap: 20px; margin-bottom: 32px; }
  .references-heading > p { justify-self: start; }
  .references-grid { gap: 16px; padding-right: 0; }
  .reference-card { flex-basis: 100%; min-height: 250px; padding: 26px 24px; }
  .reference-card blockquote { margin-block: 34px 38px; }
  .reference-slider__controls button { width: 66px; height: 40px; }
  .reference-slider__controls .action-arrow { width: 24px; height: 24px; }
}
