/* Elle Rêve Estetica: styles for il-centro.html only. Shared rules live in ../style.css. */

/* ---------- Hero ---------- */

.about-hero__illus {
  position: relative;
}

.about-hero__star {
  position: absolute;
  top: 8%;
  right: -4%;
  font-size: 1.1rem;
  color: var(--burgundy);
}

/* Small screens: keep the drawing short so it shows up near the first screen */
.about-hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 7rem);
}

.about-hero__illus {
  width: min(100%, 10rem);
}

@media (min-width: 40em) and (max-width: 59.99em) {
  .about-hero .page-hero__grid {
    grid-template-columns: minmax(0, 1fr) 11rem;
    column-gap: var(--space-5);
  }
}

@media (min-width: 60em) {
  .about-hero__illus {
    width: min(100%, 20rem);
  }
}

.about-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-top: var(--space-4);
}

.about-jump a {
  min-height: 2.75rem;
  color: var(--burgundy);
}

/* ---------- Philosophy ---------- */

.about-philosophy__text {
  max-width: 34rem;
}

.about-philosophy__text > p:not(.eyebrow):not(.lead) {
  max-width: 32em;
  text-wrap: pretty;
}

.about-philosophy__closing {
  margin: var(--space-4) 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  line-height: 1.2;
  color: var(--burgundy);
}

.about-philosophy__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 19rem);
}

@media (min-width: 60em) {
  .about-philosophy__visual {
    width: min(100%, 22rem);
  }
}

.about-philosophy__star {
  position: absolute;
  color: var(--burgundy);
}

.about-philosophy__star--a {
  top: 10%;
  right: -0.75rem;
  font-size: 1.4rem;
}

.about-philosophy__star--b {
  top: 21%;
  right: -1.5rem;
  font-size: 0.8rem;
}

@media (min-width: 60em) {
  .about-philosophy__star--a {
    top: auto;
    right: auto;
    bottom: 16%;
    left: -2.25rem;
  }

  .about-philosophy__star--b {
    top: auto;
    right: auto;
    bottom: 26%;
    left: -3.5rem;
  }
}

/*
 * The source photos carry a thin light line on the bottom edge. Scale the photo up a hair from
 * its top edge and let the frame clip the excess: works in every browser, unlike object-view-box.
 */
.about-philosophy .arch,
.about-steps .arch,
.about-gallery .arch,
.about-people .arch {
  overflow: hidden;
}

.about-philosophy .arch img,
.about-steps .arch img,
.about-gallery .arch img,
.about-people .arch img {
  transform: scale(1.015);
  transform-origin: 50% 0;
}

/* Decorations may sit slightly outside their frame: never let them widen the page */
.about-philosophy,
.about-steps,
.about-people {
  overflow-x: clip;
}

/* ---------- The four steps ---------- */

.about-steps .section-head {
  margin-bottom: var(--space-5);
}

.about-steps__list {
  display: grid;
  gap: clamp(4.5rem, 3rem + 7vw, 9rem);
}

.about-step {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.about-step__visual {
  position: relative;
  width: min(100%, 17rem);
}

.about-step:nth-child(odd) .about-step__visual {
  justify-self: start;
}

.about-step:nth-child(even) .about-step__visual {
  justify-self: end;
}

.about-step__num {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--burgundy);
}

/* Row titles sit one step below the section title (h2) */
.about-step__title {
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  line-height: 1.1;
}

.about-nowrap {
  white-space: nowrap;
}

.about-step__text p:not(.about-step__num):not(.lead) {
  max-width: 28em;
  text-wrap: pretty;
}

.about-step__text .link-arrow {
  margin-top: var(--space-1);
  min-height: 2.75rem;
  color: var(--burgundy);
}

.about-step__star,
.about-step__moon {
  position: absolute;
  color: var(--burgundy);
}

.about-step__star {
  top: 14%;
  right: -0.75rem;
  font-size: 1.25rem;
}

.about-step__moon {
  right: -1.25rem;
  bottom: 22%;
  font-size: 1.6rem;
}

@media (min-width: 48em) {
  .about-step {
    grid-template-columns: minmax(0, 18rem) minmax(0, 26rem);
    justify-content: center;
    column-gap: clamp(2.5rem, 7vw, 9rem);
  }

  .about-step:nth-child(even) {
    grid-template-columns: minmax(0, 26rem) minmax(0, 18rem);
  }

  .about-step .about-step__visual {
    width: 100%;
    justify-self: stretch;
  }

  .about-step:nth-child(even) .about-step__visual {
    order: 2;
  }
}

/* From 60em the rows span the whole container, so their outer edges line up with the other sections */
@media (min-width: 60em) {
  .about-step {
    grid-template-columns: minmax(0, 23rem) minmax(0, 32rem);
    justify-content: space-between;
  }

  .about-step:nth-child(even) {
    grid-template-columns: minmax(0, 32rem) minmax(0, 23rem);
  }
}

/* Coloured arched panel that holds a line illustration (a "post" in the shape of an arch) */
.about-panel {
  position: relative;
  padding: 0.875rem 0.875rem 0;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: var(--arch-radius);
  pointer-events: none;
}

.about-panel__fill {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--arch-radius);
}

.about-panel--burgundy .about-panel__fill {
  background: var(--burgundy);
}

.about-panel--petrol .about-panel__fill {
  background: var(--petrol);
}

.about-panel__art {
  position: absolute;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.about-panel__art--tall {
  left: 50%;
  bottom: 0;
  width: 46%;
  transform: translateX(-50%);
}

.about-panel__art--star {
  top: 17%;
  left: 50%;
  width: 26%;
  transform: translateX(-50%);
}

.about-panel__art--waves {
  left: 50%;
  bottom: 9%;
  width: 78%;
  transform: translateX(-50%);
}

/* ---------- The space ---------- */

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
  max-width: 62rem;
  margin-inline: auto;
}

.about-gallery__item {
  margin: 0;
}

.about-gallery__item--light {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 17rem);
}

.about-gallery__item--texture {
  margin-top: var(--space-5);
}

.about-gallery .arch img {
  aspect-ratio: 3 / 4;
}

/* The wall logo sits on the right of the photo: keep it whole inside the arch */
.about-gallery__item--light .arch img {
  object-position: 90% center;
}

.about-gallery figcaption {
  display: grid;
  gap: 0.25rem;
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.about-gallery figcaption .eyebrow {
  margin: 0;
}

@media (min-width: 48em) {
  .about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    align-items: start;
  }

  .about-gallery__item--light {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .about-gallery__item--detail {
    margin-top: var(--space-5);
  }

  .about-gallery__item--detail .arch img {
    aspect-ratio: 4 / 5;
  }

  .about-gallery__item--texture {
    margin-top: 0;
  }
}

.about-space__closing {
  margin-top: var(--space-5);
}

.about-space__star {
  display: block;
  margin: 0 auto var(--space-2);
  font-size: 1.25rem;
  color: var(--burgundy);
}

.about-space__line {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* ---------- The people (dark section) ---------- */

.about-people__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 19rem);
}

@media (min-width: 60em) {
  .about-people__visual {
    width: min(100%, 22rem);
  }
}

.about-people__star {
  position: absolute;
  color: var(--blush);
}

.about-people__star--a {
  top: 6%;
  right: -0.75rem;
  font-size: 1.4rem;
}

.about-people__star--b {
  top: 20%;
  right: -1rem;
  font-size: 0.8rem;
}

.about-people__text {
  max-width: 34rem;
}

.about-people__text .lead {
  margin: 0;
  text-wrap: pretty;
}

.about-qualities {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.about-qualities li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 350;
}

.about-qualities .star {
  flex: none;
  font-size: 0.9rem;
  color: var(--blush);
}

.about-people__note {
  margin: 0;
  padding-left: var(--space-2);
  border-left: 1px solid var(--line-strong);
  color: var(--blush);
}

/* ---------- The products ---------- */

.about-products__text {
  max-width: 34rem;
}

.about-products__text .lead {
  text-wrap: pretty;
}

.about-products__note {
  margin-top: 0;
}

.about-products__text > p:not(.eyebrow):not(.lead):not(.demo-note) {
  max-width: 32em;
  text-wrap: pretty;
}

.about-products__text .link-arrow {
  margin-top: var(--space-2);
  min-height: 2.75rem;
  color: var(--burgundy);
}

.about-products__visual {
  justify-self: center;
  width: min(100%, 24rem);
}

.about-products__card {
  min-height: 0;
}

.about-products__card .post-card__title {
  max-width: 8ch;
}

.about-products__card .post-card__text {
  max-width: 10rem;
  text-wrap: balance;
}

.about-products__card .post-card__illus {
  width: 34%;
  max-height: 64%;
}

/* ---------- Closing invitation ---------- */

.about-cta .section-title {
  text-wrap: balance;
}
