@import url("../../styles/home/base.css");
@import url("../../styles/home/header.css");
@import url("../../styles/home/footer.css");

.about-body {
  background: var(--color-paper);
  padding: 0;
}

.about-page {
  background: var(--color-paper);
  min-height: 100vh;
}

.about-page .site-header {
  background: rgba(255, 255, 255, 0);
  transition:
    opacity 520ms ease,
    background 320ms ease;
}

.about-page .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
}

.about-page .site-header.is-hidden {
  background: rgba(255, 255, 255, 0);
}

.about-page .site-header__brand {
  width: clamp(10rem, calc(18 * var(--vw-unit)), 18rem);
}

.about-hero {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0.96) 100%),
    url("../../assets/images/lisboa.png");
  background-position: center 64%;
  background-size: cover;
  color: var(--color-ink);
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: calc(var(--header-height) + 12vh) var(--layout-edge) 10vh;
  position: relative;
  transform: translateY(calc(-1 * var(--header-height)));
  margin-bottom: calc(-1 * var(--header-height));
}

.about-hero::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.82) 50%, #ffffff 86%, #ffffff 100%);
  bottom: -1px;
  content: "";
  height: 34vh;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 2;
}

.about-hero__map {
  display: none;
  inset: calc(var(--header-height) + 22vh) 0 0;
  justify-items: center;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.about-hero__world-map {
  align-self: center;
  display: block;
  height: min(58vh, calc(43 * var(--vw-unit)));
  max-width: min(calc(86 * var(--vw-unit)), 86rem);
  opacity: 0.82;
  transform: translateY(-2vh);
  width: 100%;
}

.about-hero__map-grid {
  fill: none;
  opacity: 0.18;
  stroke: rgba(169, 150, 104, 0.48);
  stroke-dasharray: 0.8 13;
  stroke-linecap: round;
  stroke-width: 2;
}

.about-hero__continents {
  fill: url("#about-dot-map-pattern");
  opacity: 0.86;
}

.about-hero__continents path {
  stroke: rgba(169, 150, 104, 0.12);
  stroke-width: 0.8;
}

.about-hero__world-map #about-dot-map-pattern circle {
  fill: rgba(169, 150, 104, 0.9);
}

.about-hero__hub circle {
  fill: rgba(169, 150, 104, 0.05);
  stroke: rgba(169, 150, 104, 0.56);
  stroke-width: 2.2;
}

.about-hero__hub circle:last-child {
  fill: var(--color-gold);
  stroke: rgba(169, 150, 104, 0.92);
}

.about-hero__hub--secondary {
  opacity: 0.78;
}

.about-hero__content {
  align-self: start;
  display: grid;
  gap: 2.6vh;
  justify-items: center;
  margin: 0 auto;
  max-width: min(calc(52 * var(--vw-unit)), 52rem);
  position: relative;
  text-align: center;
  z-index: 4;
}

.about-hero__eyebrow {
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.about-hero h1 {
  color: var(--color-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.about-hero__description {
  color: rgba(7, 7, 7, 0.54);
  line-height: 1.7;
  max-width: min(calc(38 * var(--vw-unit)), 38rem);
}

.about-hero__mobile-message {
  display: none;
}

.about-editorial {
  align-items: center;
  background: #ffffff;
  color: var(--color-ink);
  display: grid;
  min-height: 74vh;
  padding:
    min(calc(8 * var(--vw-unit)), 8rem)
    var(--layout-edge);
  position: relative;
}

.about-editorial__content {
  display: grid;
  gap: 6vh;
  justify-items: center;
  margin: 0 auto;
  max-width: min(calc(63 * var(--vw-unit)), 66rem);
  text-align: center;
}

.about-editorial__content p {
  color: #7a7d7a;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: lowercase;
}

.about-editorial__content h2 {
  color: rgba(7, 7, 7, 0.3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(var(--font-h2) * 0.88);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.24;
}

.about-editorial__content h2 > span {
  color: #a99668;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
}

.about-editorial__content h2 .about-editorial__letter {
  color: rgba(7, 7, 7, var(--letter-opacity, 0.16));
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.about-editorial__content h2 .about-editorial__letter--fixed {
  color: #a99668;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
}

.location-section {
  align-items: start;
  background: #ffffff;
  color: var(--color-ink);
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  margin: 0 auto;
  max-width: min(calc(104 * var(--vw-unit)), 104rem);
  min-height: min(76vh, 47rem);
  overflow: hidden;
  padding:
    min(calc(5.1 * var(--vw-unit)), 5.1rem)
    var(--layout-edge)
    min(calc(5.5 * var(--vw-unit)), 5.5rem)
    calc(var(--layout-edge) + min(calc(0.8 * var(--vw-unit)), 0.8rem));
  position: relative;
}

.location-section::before {
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 31%, rgba(255, 255, 255, 0.72) 45%, transparent 62%),
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 76%, #ffffff 100%),
    radial-gradient(circle at 28% 50%, rgba(255, 255, 255, 0.9), transparent 31%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.location-section::after {
  display: none;
}

.location-section__map {
  background-image: url("../../assets/images/img2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  bottom: min(calc(2.4 * var(--vw-unit)), 2.4rem);
  mask-image:
    linear-gradient(180deg, transparent 0%, #000000 14%, #000000 82%, transparent 100%),
    linear-gradient(90deg, #000000 0%, #000000 84%, transparent 100%);
  mask-composite: intersect;
  opacity: 1;
  position: absolute;
  right: min(calc(2.8 * var(--vw-unit)), 2.8rem);
  top: min(calc(2.4 * var(--vw-unit)), 2.4rem);
  width: min(calc(53.5 * var(--vw-unit)), 53.5rem);
  -webkit-mask-composite: source-in;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000000 14%, #000000 82%, transparent 100%),
    linear-gradient(90deg, #000000 0%, #000000 84%, transparent 100%);
  z-index: 0;
}

.location-section__content {
  align-self: start;
  display: grid;
  gap: min(calc(2.55 * var(--vw-unit)), 2.55rem);
  justify-self: start;
  max-width: min(calc(43 * var(--vw-unit)), 43rem);
  position: relative;
  z-index: 2;
}

.location-section__statement {
  display: grid;
  gap: min(calc(1.55 * var(--vw-unit)), 1.55rem);
  max-width: min(calc(29 * var(--vw-unit)), 29rem);
}

.location-section__statement .section-eyebrow {
  color: #9a875d;
}

.location-section__statement h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(var(--font-h2) * 1.24);
  line-height: 1.07;
}

.location-section__statement > p:last-child {
  color: #1f211f;
  line-height: 1.72;
  max-width: min(calc(27 * var(--vw-unit)), 27rem);
}

.location-section__accent-line {
  background: var(--color-gold);
  display: block;
  height: clamp(0.04rem, calc(0.07 * var(--vw-unit)), 0.07rem);
  margin-top: min(calc(0.35 * var(--vw-unit)), 0.35rem);
  width: min(calc(3.2 * var(--vw-unit)), 3.2rem);
}

.location-section__facts {
  display: grid;
  gap: min(calc(3.4 * var(--vw-unit)), 3.4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(calc(42 * var(--vw-unit)), 42rem);
}

.location-section__fact {
  display: grid;
  gap: min(calc(0.55 * var(--vw-unit)), 0.55rem);
}

.location-section__fact + .location-section__fact {
  border-left: clamp(0.04rem, calc(0.07 * var(--vw-unit)), 0.07rem) solid rgba(7, 7, 7, 0.18);
  padding-left: min(calc(3.6 * var(--vw-unit)), 3.6rem);
}

.location-section__fact h4 {
  color: #8b8070;
  font-size: max(0.75rem, calc(var(--font-h4) * 0.88));
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.location-section__fact h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: max(0.75rem, calc(var(--font-h3) * 0.9));
  line-height: 1.2;
}

.location-section__fact p {
  color: #4e514f;
  font-size: max(0.75rem, calc(var(--font-p) * 0.92));
  line-height: 1.45;
}

.testimonial-section {
  background: #ffffff;
  color: var(--color-ink);
  padding:
    min(calc(9.6 * var(--vw-unit)), 9.6rem)
    var(--layout-edge)
    min(calc(10.6 * var(--vw-unit)), 10.6rem);
}

.testimonial-section__content {
  align-items: center;
  display: grid;
  gap: min(calc(1.05 * var(--vw-unit)), 1.05rem);
  justify-items: center;
  margin: 0 auto;
  max-width: min(calc(48 * var(--vw-unit)), 48rem);
  text-align: center;
}

.testimonial-section__slides {
  display: grid;
  width: 100%;
}

.testimonial-section__slide {
  align-items: center;
  display: grid;
  gap: min(calc(1.05 * var(--vw-unit)), 1.05rem);
  grid-area: 1 / 1;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-standard);
}

.testimonial-section__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-section__avatar {
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  filter: blur(calc(0.14 * var(--vw-unit)));
  height: min(calc(3.8 * var(--vw-unit)), 3.8rem);
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  width: min(calc(3.8 * var(--vw-unit)), 3.8rem);
}

.testimonial-section__avatar--pedro {
  object-position: center 46%;
  transform: none;
}

.testimonial-section__quote {
  margin: 0;
}

.testimonial-section__quote p {
  color: #111111;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}

.testimonial-section__author {
  align-items: center;
  color: #8b8070;
  display: inline-flex;
  gap: min(calc(0.38 * var(--vw-unit)), 0.38rem);
  justify-content: center;
  line-height: 1.2;
}

.testimonial-section__author span:first-child {
  color: #3f433f;
  font-weight: 600;
}

.testimonial-section__controls {
  display: inline-flex;
  gap: min(calc(0.45 * var(--vw-unit)), 0.45rem);
  margin-top: min(calc(1.2 * var(--vw-unit)), 1.2rem);
}

.testimonial-section__control {
  align-items: center;
  background: #ffffff;
  border: clamp(0.04rem, calc(0.07 * var(--vw-unit)), 0.07rem) solid rgba(7, 7, 7, 0.32);
  border-radius: 50%;
  color: #111111;
  display: inline-flex;
  height: min(calc(1.5 * var(--vw-unit)), 1.5rem);
  justify-content: center;
  padding: 0;
  transition:
    background var(--transition-standard),
    color var(--transition-standard),
    transform var(--transition-standard);
  width: min(calc(1.5 * var(--vw-unit)), 1.5rem);
}

.testimonial-section__control:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-0.08rem);
}

.testimonial-section__arrow {
  background: currentColor;
  display: block;
  height: clamp(0.04rem, calc(0.06 * var(--vw-unit)), 0.06rem);
  position: relative;
  width: min(calc(0.52 * var(--vw-unit)), 0.52rem);
}

.testimonial-section__arrow::before {
  border-color: currentColor;
  border-style: solid;
  border-width: clamp(0.04rem, calc(0.06 * var(--vw-unit)), 0.06rem) 0 0 clamp(0.04rem, calc(0.06 * var(--vw-unit)), 0.06rem);
  content: "";
  height: min(calc(0.22 * var(--vw-unit)), 0.22rem);
  position: absolute;
  top: 50%;
  width: min(calc(0.22 * var(--vw-unit)), 0.22rem);
}

.testimonial-section__arrow--previous::before {
  left: 0;
  transform: translateY(-50%) rotate(-45deg);
}

.testimonial-section__arrow--next::before {
  right: 0;
  transform: translateY(-50%) rotate(135deg);
}

@media (max-width: 1024px) {
  html,
  .about-body {
    background: #07090b;
    overflow: hidden;
  }

  .about-page {
    background: #07090b;
    min-height: 100vh;
    overflow: hidden;
  }

  .about-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(7, 9, 11, 0.72) 0%, rgba(7, 9, 11, 0.38) 46%, rgba(7, 9, 11, 0.64) 100%),
      url("../../assets/images/lisboa.png");
    background-position: center 64%;
    background-size: cover;
    filter: blur(5px) saturate(0.5);
    transform: scale(1.06);
  }

  .about-page .site-header {
    transition: none;
  }

  .about-page .site-header.is-scrolled,
  .about-page .site-header.is-hidden {
    background: transparent;
  }

  .about-page .site-header:has(.site-header__navigation.is-open) .site-header__logo {
    width: 80%;
  }

  .about-hero {
    align-items: center;
    background: transparent;
    margin-bottom: 0;
    min-height: 100vh;
    padding: calc(var(--header-height) + 6vh) var(--layout-edge) 8vh;
    transform: none;
  }

  .about-hero::before {
    display: none;
  }

  .about-hero::after {
    display: none;
  }

  .about-hero__map {
    display: none;
  }

  .about-hero__content {
    align-self: center;
    gap: 0;
    max-width: none;
    transform: translateY(-5%);
    z-index: 3;
  }

  .about-hero__mobile-message {
    display: grid;
    gap: calc(6 * var(--vw-unit));
    justify-items: center;
    text-align: center;
  }

  .about-hero__mobile-message p:first-child {
    color: var(--color-gold);
    font-weight: 600;
    font-size: calc(2.2 * var(--vw-unit));
    letter-spacing: calc(0.7 * var(--vw-unit));
    line-height: 1;
    text-transform: uppercase;
  }

  .about-hero__mobile-message h2 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: calc(6.4 * var(--vw-unit));
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.18;
  }

  .about-hero__mobile-message h2 span {
    color: var(--color-gold);
    font-family: Inter, Arial, sans-serif;
    font-weight: 800;
  }

  .about-hero__mobile-message > p:last-child {
    color: rgba(255, 255, 255, 0.68);
    font-size: calc(3 * var(--vw-unit));
    line-height: 1.55;
    max-width: calc(42 * var(--vw-unit));
  }

  /* O gate "Designed for Desktop" escondia editorial, location, testimonial
     e o footer em <=480px. Como o Google indexa mobile-first, a pagina valia
     13 palavras para o crawler. O conteudo passa a ser servido em mobile. */
  .about-hero__mobile-message {
    display: none;
  }

  /* Consequencia de as tornar visiveis: nunca tiveram layout mobile, porque
     estavam display:none. Os max-width sao em vw e colapsam num ecra
     estreito: 27vw a 390px sao 105px, o que punha duas palavras por linha. */
  .about-hero__description,
  .about-editorial__content,
  .location-section__content,
  .location-section__statement,
  .location-section__statement > p:last-child,
  .location-section__facts {
    max-width: none;
  }

  .about-editorial {
    padding: 9vh var(--layout-edge);
  }

  /* Era uma grelha de duas colunas (46%/54%) com o mapa em position:absolute.
     Em coluna unica o mapa sobrepunha-se ao texto e aos facts. */
  .location-section {
    grid-template-columns: 1fr;
    padding: 7vh var(--layout-edge) 9vh;
  }

  .location-section__content {
    order: 1;
  }

  .location-section__map {
    aspect-ratio: 4 / 3;
    bottom: auto;
    margin-top: 3vh;
    order: 2;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  /* Eram duas colunas lado a lado: "Established In" e "Built Around"
     sobrepunham-se assim que o texto deixou de ser minusculo. */
  .location-section__facts {
    gap: calc(6 * var(--vw-unit));
    grid-template-columns: 1fr;
  }

  .testimonial-section {
    padding: 8vh var(--layout-edge) 9vh;
  }

  /* max-width era 48vw, ou seja 187px num ecra de 390px. */
  .testimonial-section__content {
    max-width: none;
  }

  /* O avatar dava 3.8vw = 15px e os controlos 1.5vw = 6px, longe do minimo
     de 44px para um alvo de toque. */
  .testimonial-section__avatar {
    filter: blur(0.5px);
    height: 2.5rem;
    width: 2.5rem;
  }

  .testimonial-section__control {
    height: 2.75rem;
    width: 2.75rem;
  }

  .testimonial-section__arrow {
    height: 1px;
    width: 0.6rem;
  }

  .testimonial-section__controls {
    gap: 0.75rem;
  }
}

/* Banda de tablet: os max-width escritos em var(--vw-unit) congelam no valor de
   um ecra de 480px (ver base.css) e deixariam estas caixas com 250 a 500px
   dentro de uma coluna de 640px. A coluna ja e limitada pelo --layout-edge. */
@media (min-width: 481px) and (max-width: 1024px) {
  .location-section {
    max-width: none;
  }
}
